移行先サイト
アプリ開発ENIBLO
カラム名
[関連テーブル名]_count
Migration
integerでdefaultは0とする。
t.integer :[関連テーブル名]_count, :default⇒0
モデル
belongs_to [関連テーブル], :counter_cache ⇒ true