DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Use Rake Migrations To Create Schema In Production Database

05.24.2006
| 24275 views |
  • submit to reddit
        // use your migrations to recreate the tables in the testing or production databases

rake migrate RAILS_ENV=production

    

Comments

Snippets Manager replied on Tue, 2010/05/18 - 11:16am

It guess this should be ("db:" was missing): rake db:migrate RAILS_ENV=production