Skip to content

Commit

Permalink
Make employee dependency explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Aug 20, 2024
1 parent a7f1e5a commit e7ba96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/worktime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Worktime < ApplicationRecord

class_attribute :account_label

belongs_to :employee
belongs_to :employee, optional: false
belongs_to :absence, optional: true
belongs_to :work_item, optional: true
belongs_to :invoice, optional: true
Expand Down

0 comments on commit e7ba96e

Please sign in to comment.