10 lines
171 B
Ruby
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
|