Herokuでマイグレーション
> heroku run rake db:migrate
Herokuでシード、初期で登録してあるデータを反映させる場合に使う
> heroku run rake db:seed
Herokuはデータベースを削除できないのでデータベースをリセットする
> heroku pg:reset DATABASE
これを入力した後に下記のコメントがでてコンソールモードになってアプリ名の所を入力すれば完了
! WARNING: Destructive Action
! This command will affect the app: アプリ名
! To proceed, type "アプリ名" or re-run this command with --confirm アプリ名
> アプリ名
サイトに接続
> heroku open
サーバーのログを確認する
> heroku logs