data migration を db/migrate/ に書いてはいけない。 1. 将来的にモデルに変更があったときに困る 2. rake db:schema:load などは migration を素通りする 3. テーブルのデータが巨大な場合、 deploy 時に支障がある

morygonzalezmorygonzalez のブックマーク 2016/02/20 00:18

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Data Migrations in Rails

    Every now and again we need to change actual data in the production database. The first obvious option that comes to mind is to use a Rails migration, especially since the word “migration” is alrea...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう