diff options
| author | hukl <contact@smyck.org> | 2009-03-01 13:56:24 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-01 13:56:24 +0100 |
| commit | c7757522c2750675fab6c4324453e237b863d84c (patch) | |
| tree | 3cc50a7f8e5c5ab9dbad1957863422a772dddf14 /db | |
| parent | 62db596a0807059afe321930c2015b30f8b0e6d9 (diff) | |
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.
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20090301104237_add_draft_id_to_nodes.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ | |||
| 1 | class AddDraftIdToNodes < ActiveRecord::Migration | ||
| 2 | def self.up | ||
| 3 | add_column :nodes, :draft_id, :integer | ||
| 4 | end | ||
| 5 | |||
| 6 | def self.down | ||
| 7 | remove_column :nodes, :draft_id | ||
| 8 | end | ||
| 9 | end | ||
