Migrations and Environments in Ruby on Rails


You want to migrate a target environment other than development.


For production:

>rake environment RAILS_ENV=production migrate

For test:

>rake environment RAILS_ENV=test migrate

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> in your comment.