diff options
| author | hukl <contact@smyck.org> | 2009-09-09 15:19:33 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-09 15:19:33 +0200 |
| commit | f7ce8c245fde3f6202103ae614b181c0ba44ed93 (patch) | |
| tree | 4625c54b0dfb31bdc3e71480fb8936fa5a6c0ca5 /db | |
| parent | f3a8cd8d1e8dfafb987163d95208e0ff2ccbfbc2 (diff) | |
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
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20090909113832_add_staged_slug_and_parent_id.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ | |||
| 1 | class AddStagedSlugAndParentId < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | add_column :nodes, :staged_slug, :string | ||
| 4 | add_column :nodes, :staged_parent_id, :integer | ||
| 5 | end | ||
| 6 | |||
| 7 | def self.down | ||
| 8 | remove_column :nodes, :staged_slug | ||
| 9 | remove_column :nodes, :staged_parent_id | ||
| 10 | end | ||
| 11 | end | ||
