class AddViewedCountToMemos < ActiveRecord::Migration def change add_column :memos, :viewed_count, :int, default: 0 end end