0

I had a working Active Admin app working on my local server, but after pushing to Heroku all my database tables are empty. I tried running heroku run rake db:migrate and then heroku restart but these both accomplished nothing. The tables are there, but they are empty.

Thanks!

4

1 に答える 1

3

Heroku アプリにローカルと同じデータベースを持たせたい場合は、ローカル データベースheroku db:pushを Heroku にプッシュする必要があります。これにより、Heroku のテーブルの内容がローカル コピーに置き換えられるため、慎重に使用してください。

編集:heroku db:pushは現在heroku pg:push、前者は非推奨です。

于 2012-06-18T19:54:29.130 に答える