[openstreetmap/openstreetmap-website] Changeset subscription model (PR #5797)
Tom Hughes
notifications at github.com
Thu Mar 13 19:41:49 UTC 2025
@tomhughes commented on this pull request.
> @@ -63,7 +63,7 @@ class User < ApplicationRecord
has_many :preferences, :class_name => "UserPreference"
has_many :changesets, -> { order(:created_at => :desc) }, :inverse_of => :user
has_many :changeset_comments, :foreign_key => :author_id, :inverse_of => :author
- has_and_belongs_to_many :changeset_subscriptions, :class_name => "Changeset", :join_table => "changesets_subscribers", :foreign_key => "subscriber_id"
+ has_many :changeset_subscriptions, :foreign_key => :subscriber_id
That does indeed seem to be the case so I think this is probably good as it is.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5797#discussion_r1994200772
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5797/review/2683190916 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250313/5628d4a8/attachment.htm>
More information about the rails-dev
mailing list