summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090909113832_add_staged_slug_and_parent_id.rb11
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 @@
1class 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
11end