added the PTO section
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class PaidTimeOff < ActiveRecord::Base
|
||||
attr_accessible :pto_earned, :pto_taken, :sick_days_earned, :sick_days_taken, :user_id
|
||||
belongs_to :user
|
||||
|
||||
end
|
||||
@@ -11,6 +11,7 @@ class User < ActiveRecord::Base
|
||||
attr_accessor :skip_user_id_assign
|
||||
before_save :assign_user_id, :on => :create
|
||||
has_one :retirement, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :paid_time_off, :foreign_key => :user_id, :primary_key => :user_id
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user