rake db:migrate doesn't seem to work in production

后端 未结 2 942
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 01:45

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

相关标签:
2条回答
  • 2020-12-13 02:23

    For me the answer above not works. I have to add bundle exec to make it works.

    bundle exec rails db:migrate RAILS_ENV=production
    
    0 讨论(0)
  • 2020-12-13 02:35

    Sometimes I forget about Google. The answer is this:

    rake db:migrate RAILS_ENV=production
    
    0 讨论(0)
提交回复
热议问题