class AddContestIdToNews < ActiveRecord::Migration def change add_column :news, :contest_id, :integer end end