Import random Excel into Rails 4 app to create database schema on the fly -



Import random Excel into Rails 4 app to create database schema on the fly -

one of recent rails app requires import info excel, i've been next along ryan's railscasts #396 importing csv , excel, worked out pretty okay, 1 limitation, have create database schema first, wondering how can create more adaptable, pick excel header or number of columns, base of operations on imported data, create database schema on fly. possible? :)

relational database works when know construction of data, there not suitable making migrations triggered user data, if don't know construction can schema like:

mytable col1: string col2: string col3: string coln: string

other approach may seek utilize non-relational database mongodb, it's compatible ruby on rails.

ruby-on-rails

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -