#300: Added migration for dependencies support

This commit is contained in:
Henrik Bohre 2009-05-19 00:06:08 +02:00 committed by Eric Allen
parent 45d9ab60bf
commit 9871755140

View file

@ -0,0 +1,13 @@
class AddTodoDependencies < ActiveRecord::Migration
def self.up
create_table :dependencies do |t|
t.integer :todo_id, :null => false
t.integer :predecessor_id, :null => false
t.string :relationship_type
end
end
def self.down
drop_table :dependencies
end
end