Friday, September 28, 2012

[Rails] create database and run migration at run time

Hi,

I have to create databases at run time depending on the name of the new
user's company and to run all the migrations for that new database.

for example: If a new user get registered and enter ABC as his company
name, then we will check if there is any existing user with same
company. If we dont have any user for that company then we have to
create a new Database and name it "ABC". After creating this new
Database we have to run all the migration for this new Database.

All this has to be done at run time and dynamicaly.


Thanks in advance for the solution.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate