I have two instances of my app: one for development, one for production. My development database is called snip_development and my production database is called
snip_development
For me the answer above not works. I have to add bundle exec to make it works.
bundle exec
bundle exec rails db:migrate RAILS_ENV=production
Sometimes I forget about Google. The answer is this:
rake db:migrate RAILS_ENV=production