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
Post a Comment