Migrations and Environments in Ruby on Rails
Problem:
You want to migrate a target environment other than development.
Solution:
For production:
>rake environment RAILS_ENV=production migrate
For test:
>rake environment RAILS_ENV=test migrate
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
No comments yet.