Skip to content

Commit fd5214a

Browse files
Katie Zhangnatsuki615
authored andcommitted
fix(lint): rubocop and prettier refactor
1 parent 0edb814 commit fd5214a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/models/participant.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ def ability
5252
dependent: :destroy
5353
has_many :organizations, through: :memberships
5454
has_many :organization_categories, through: :organizations
55-
has_many :organization_build_steps, foreign_key: :approver_id, dependent: :restrict_with_error
55+
has_many :organization_build_steps,
56+
foreign_key: :approver_id,
57+
inverse_of: :approver,
58+
dependent: :restrict_with_error
5659
has_many :certifications, dependent: :destroy
5760
has_many :certification_types, through: :certifications
5861

0 commit comments

Comments
 (0)