diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-26 11:46:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-26 11:46:24 +0000 |
commit | 60d066f943c68a348fee3a8350dc5ba88878b69c (patch) | |
tree | 00d123b7b25e7306688842a7fed0733412118f41 /db/migrate/095_add_wiki_pages_parent_id.rb | |
parent | b68fd4c04bed4d8c9f7d0ad9d65125c36635c819 (diff) | |
download | redmine-60d066f943c68a348fee3a8350dc5ba88878b69c.tar.gz redmine-60d066f943c68a348fee3a8350dc5ba88878b69c.zip |
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
Diffstat (limited to 'db/migrate/095_add_wiki_pages_parent_id.rb')
-rw-r--r-- | db/migrate/095_add_wiki_pages_parent_id.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |