I have a simple Rails application that populates into a specific database, and there are several migration scenarios. I would like to create another set of model classes and actually transfer the schema related to these files to another database. How do we do this? Will I be able to do this from the same rail?
Well, change the database name to database.yml, then follow the usual steps, bundle exec rake db:setup should do the job.
database name
bundle exec rake db:setup
Or you can create a separate database_2.yml and then create a database.rake file and follow the steps here
database_2.yml
Source: https://habr.com/ru/post/1208012/More articles:Ramifications of using DBContext with dependency injection - c #Requiring an assignment operator for a key type in std :: map - c ++Failed to create certificate when I want to start the source. / vars and. / clean-all - ubuntu-14.04Umbraco 7 user cookies - cookiesOpenVPN Source vars not working on debian - variablesBusyIndicator not showing up - qtGoogle Maps URL Schema Does Not Display Token - iosUnable to make JNI call from C ++ to java in android lollipop using jni - c ++Create a servlet and JSP in the intellectual idea - javajgit - delete .git directory (or get files without it) - javaAll Articles