Mercurial > hg > soundsoftware-site
annotate db/migrate/20120731164049_add_boards_parent_id.rb @ 1377:f0da42a09a3c luisf
Properly closed some html tags; removed unnecessary tags.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Sat, 31 Aug 2013 13:22:20 +0100 |
parents | 433d4f72a19b |
children |
rev | line source |
---|---|
Chris@1115 | 1 class AddBoardsParentId < ActiveRecord::Migration |
Chris@1115 | 2 def up |
Chris@1115 | 3 add_column :boards, :parent_id, :integer |
Chris@1115 | 4 end |
Chris@1115 | 5 |
Chris@1115 | 6 def down |
Chris@1115 | 7 remove_column :boards, :parent_id |
Chris@1115 | 8 end |
Chris@1115 | 9 end |