Conflicts:

db/tracks-17-blank.db
This commit is contained in:
Eric Allen 2009-11-04 22:31:17 -05:00
parent 5b1acce71e
commit cc033e2165
3 changed files with 3 additions and 5 deletions

View file

@ -1,9 +1,7 @@
class Dependency < ActiveRecord::Base
belongs_to :todo,
:class_name => "Todo", :foreign_key => "todo_id"
belongs_to :predecessor,
:class_name => "Todo", :foreign_key => "predecessor_id"
belongs_to :predecessor, :foreign_key => 'predecessor_id', :class_name => 'Todo'
belongs_to :successor, :foreign_key => 'successor_id', :class_name => 'Todo'
end

View file

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

Binary file not shown.