socialforge/db/migrate/20151112072948_add_news_sti...

10 lines
171 B
Ruby

class AddNewsSticky < ActiveRecord::Migration
def up
add_column :news, :sticky, :integer, :default => 0
end
def down
remove_column :news, :sticky
end
end