From c7757522c2750675fab6c4324453e237b863d84c Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Mar 2009 13:56:24 +0100 Subject: refactored drafts which are now identified by a draft_id on the node rather than by guessing it. i was really that close to make that mistake again. --- db/migrate/20090301104237_add_draft_id_to_nodes.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20090301104237_add_draft_id_to_nodes.rb (limited to 'db/migrate') diff --git a/db/migrate/20090301104237_add_draft_id_to_nodes.rb b/db/migrate/20090301104237_add_draft_id_to_nodes.rb new file mode 100644 index 0000000..a0ea672 --- /dev/null +++ b/db/migrate/20090301104237_add_draft_id_to_nodes.rb @@ -0,0 +1,9 @@ +class AddDraftIdToNodes < ActiveRecord::Migration + def self.up + add_column :nodes, :draft_id, :integer + end + + def self.down + remove_column :nodes, :draft_id + end +end -- cgit v1.3