mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 12:08:47 +01:00
Conflicts:
db/tracks-17-blank.db
This commit is contained in:
parent
5b1acce71e
commit
cc033e2165
3 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue