10 lines
170 B
Ruby
10 lines
170 B
Ruby
|
class AddBoardsParentId < ActiveRecord::Migration
|
||
|
def up
|
||
|
add_column :boards, :parent_id, :integer
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
remove_column :boards, :parent_id
|
||
|
end
|
||
|
end
|