mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 04:18:49 +01:00
#300: Added model for dependency relation
This commit is contained in:
parent
9871755140
commit
947172f435
1 changed files with 9 additions and 0 deletions
9
app/models/dependency.rb
Normal file
9
app/models/dependency.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class Dependency < ActiveRecord::Base
|
||||
|
||||
belongs_to :todo,
|
||||
:class_name => "Todo", :foreign_key => "todo_id"
|
||||
belongs_to :predecessor,
|
||||
:class_name => "Todo", :foreign_key => "predecessor_id"
|
||||
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue