bigdir/db/migrate/20120731164049_add_boards_p...

10 lines
170 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class AddBoardsParentId < ActiveRecord::Migration
def up
add_column :boards, :parent_id, :integer
end
def down
remove_column :boards, :parent_id
end
end