blob: 6aff1fb4e0d84d27487e4b33a954dbf15214f3c1 (
plain)
1
2
3
4
5
6
7
8
9
|
class AddWikiPagesParentId < ActiveRecord::Migration[4.2]
def self.up
add_column :wiki_pages, :parent_id, :integer, :default => nil
end
def self.down
remove_column :wiki_pages, :parent_id
end
end
|