summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-06 21:48:41 +0100
committerhukl <hukl@eight.local>2009-02-07 12:25:31 +0100
commitce9645d0092d42c7bf8781378181ffbd4ff3d088 (patch)
treee569a73ac2db2b36b2e90835260c46bcf0d479fa /db
parent79002c688d4fe6bf058459af84986a0d70dde758 (diff)
added head id to node model which points to the
head of the nodes pages collection. modified tests, importer etc renamed flags to tags
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20090206201554_add_head_id_to_node.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20090206201554_add_head_id_to_node.rb b/db/migrate/20090206201554_add_head_id_to_node.rb
new file mode 100644
index 0000000..7f4af4f
--- /dev/null
+++ b/db/migrate/20090206201554_add_head_id_to_node.rb
@@ -0,0 +1,9 @@
1class AddHeadIdToNode < ActiveRecord::Migration
2 def self.up
3 add_column :nodes, :head_id, :integer
4 end
5
6 def self.down
7 remove_column :nodes, :head_id
8 end
9end