Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMaxwell Salzberg <maxwell@joindiaspora.com>2011-05-26 06:01:17 +0400
committerRaphael Sofaer <raphael@joindiaspora.com>2011-07-22 05:22:17 +0400
commitfa9269541fa89b4ed4061cd19a99b4bc89b0a184 (patch)
treea85263df20bc3c417632b7d64f5b2b77adb1396e /db
parent06f886ad770d95b7396a068ad15c153c624632d9 (diff)
wip removed some generated specs
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110525213325_add_root_id_to_posts.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20110525213325_add_root_id_to_posts.rb b/db/migrate/20110525213325_add_root_id_to_posts.rb
new file mode 100644
index 000000000..7f6969b54
--- /dev/null
+++ b/db/migrate/20110525213325_add_root_id_to_posts.rb
@@ -0,0 +1,9 @@
+class AddRootIdToPosts < ActiveRecord::Migration
+ def self.up
+ add_column :posts, :root_id, :integer
+ end
+
+ def self.down
+ remove_column :posts, :root_id
+ end
+end