From f7ce8c245fde3f6202103ae614b181c0ba44ed93 Mon Sep 17 00:00:00 2001 From: hukl Date: Wed, 9 Sep 2009 15:19:33 +0200 Subject: added editing of slugs and moving of nodes. to edit a slug or move a node you edit that node, make your changes and save. the slug and parent node changes get staged and are applied once that revision is published --- db/migrate/20090909113832_add_staged_slug_and_parent_id.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20090909113832_add_staged_slug_and_parent_id.rb (limited to 'db') diff --git a/db/migrate/20090909113832_add_staged_slug_and_parent_id.rb b/db/migrate/20090909113832_add_staged_slug_and_parent_id.rb new file mode 100644 index 0000000..ab883ca --- /dev/null +++ b/db/migrate/20090909113832_add_staged_slug_and_parent_id.rb @@ -0,0 +1,11 @@ +class AddStagedSlugAndParentId < ActiveRecord::Migration + def self.up + add_column :nodes, :staged_slug, :string + add_column :nodes, :staged_parent_id, :integer + end + + def self.down + remove_column :nodes, :staged_slug + remove_column :nodes, :staged_parent_id + end +end -- cgit v1.3