Adding a second SQLite db in Ruby on Rails -


i have ror application sqlite3 db. want create new database, , not want delete previous one.

  1. how define new db in current project, when run rake db:create referring new one?

generally process add new sqlite db in existing project?

follow below steps:

  1. change database name in database.yml file
  2. rake db:create
  3. rake db:migrate

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -