CRUDIn_Juties

This commit is contained in:
yamin
2017-08-23 18:14:31 +06:30
parent 784da2cf09
commit d88199150e
10 changed files with 133 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
class Commissioner < ApplicationRecord
belongs_to :employee, foreign_key: 'emp_id'
belongs_to :commission, foreign_key: 'commission_type'
has_many :in_juties
scope :active, -> { where(is_active: true) }
end