From ce9645d0092d42c7bf8781378181ffbd4ff3d088 Mon Sep 17 00:00:00 2001 From: hukl Date: Fri, 6 Feb 2009 21:48:41 +0100 Subject: added head id to node model which points to the head of the nodes pages collection. modified tests, importer etc renamed flags to tags --- db/migrate/20090206201554_add_head_id_to_node.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20090206201554_add_head_id_to_node.rb (limited to 'db') 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 @@ +class AddHeadIdToNode < ActiveRecord::Migration + def self.up + add_column :nodes, :head_id, :integer + end + + def self.down + remove_column :nodes, :head_id + end +end -- cgit v1.3