summaryrefslogtreecommitdiffstats
path: root/db/migrate/095_add_wiki_pages_parent_id.rb
blob: 36b922ec14c9e78853460868139aad9e1b785077 (plain)
1
2
3
4
5
6
7
8
9
class AddWikiPagesParentId < ActiveRecord::Migration
  def self.up
    add_column :wiki_pages, :parent_id, :integer, :default => nil
  end

  def self.down
    remove_column :wiki_pages, :parent_id
  end
end