I am setting this up, in this way, so that we have some extensibility. We may wish to have some sort of a polymorphic association where multiple models need to have a scheduling model available to them. That being said, as of right now, only the pto model needs it so I am doing a belong_to and has_one association between the two

This commit is contained in:
Ken Johnson
2013-05-27 13:09:33 -04:00
parent 8bfdf45ff9
commit 21752fab7e
7 changed files with 79 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
class Schedule < ActiveRecord::Base
attr_accessible :date_begin, :date_end, :event_desc, :event_name, :event_type, :user_id
belongs_to :paid_time_off
end