Skip to content

Commit

Permalink
add has_many :projects to Location
Browse files Browse the repository at this point in the history
Adops @nimmolo's suggestion. #2085 (comment)
  • Loading branch information
JoeCohen committed Apr 4, 2024
1 parent 606406b commit 71576ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Location < AbstractModel # rubocop:disable Metrics/ClassLength
has_many :comments, as: :target, dependent: :destroy, inverse_of: :target
has_many :interests, as: :target, dependent: :destroy, inverse_of: :target
has_many :observations
has_many :projects
has_many :species_lists
has_many :herbaria # should be at most one, but nothing preventing more
has_many :users # via profile location
Expand Down

0 comments on commit 71576ba

Please sign in to comment.