From 60d066f943c68a348fee3a8350dc5ba88878b69c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 26 Jul 2008 11:46:24 +0000 Subject: Wiki page hierarchy (#528). Parent page can be assigned on Rename screen. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1698 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/095_add_wiki_pages_parent_id.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/095_add_wiki_pages_parent_id.rb (limited to 'db/migrate') diff --git a/db/migrate/095_add_wiki_pages_parent_id.rb b/db/migrate/095_add_wiki_pages_parent_id.rb new file mode 100644 index 000000000..36b922ec1 --- /dev/null +++ b/db/migrate/095_add_wiki_pages_parent_id.rb @@ -0,0 +1,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 -- cgit v1.2.3