Heroku: How to push seeds.rb to existing rails app?

前端 未结 4 1149
北海茫月
北海茫月 2020-12-29 07:20

I store all my app\'s data in seeds.rb locally. However, after I pushing everything to Heroku, the app works well, but without any data. I do not want to re-input the mass d

4条回答
  •  长发绾君心
    2020-12-29 08:14

    you have to be sure no migration is pending if no pending

    just do

    heroku run rake db:migrate
    

    and it will word perfectly

提交回复
热议问题