How to populate production database (heroku) with development data? (Rails)

前端 未结 2 740
心在旅途
心在旅途 2021-02-09 18:25

heroku run rake db:migrate works fine to alter the structure of the production database:

Migrating to CreateUsers (20120318090252)
Migrating to AddI         


        
2条回答
  •  滥情空心
    2021-02-09 19:07

    This is the normal behavior. rake db:migrate will only create your database structure. If you want to duplicate the data you already have in development on Heroku, use the heroku db:push command, or just use the seeds.rb if you want to initialize the database with some fixed records.

提交回复
热议问题