Skip to content

Commit

Permalink
Add dependent option to field_slip relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-nathan committed Apr 3, 2024
1 parent 1897e5e commit 12be78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Project < AbstractModel # rubocop:disable Metrics/ClassLength
has_many :members, through: :project_members, source: :users

has_many :comments, as: :target, dependent: :destroy, inverse_of: :target
has_many :field_slips
has_many :field_slips, dependent: :nullify
has_many :interests, as: :target, dependent: :destroy, inverse_of: :target

has_many :project_images, dependent: :destroy
Expand Down

0 comments on commit 12be78f

Please sign in to comment.