[openstreetmap/openstreetmap-website] Add UserMute to control private message visibility (PR #4284)
Gregory Igelmund
notifications at github.com
Wed Oct 11 10:26:38 UTC 2023
@grekko commented on this pull request.
> +# updated_at :datetime not null
+#
+# Indexes
+#
+# index_user_mutes_on_appointee_id (appointee_id)
+# index_user_mutes_on_creator_id (creator_id)
+# index_user_mutes_on_creator_id_and_appointee_id (creator_id,appointee_id) UNIQUE
+#
+# Foreign Keys
+#
+# fk_rails_... (appointee_id => users.id)
+# fk_rails_... (creator_id => users.id)
+#
+class UserMute < ApplicationRecord
+ belongs_to :creator, :class_name => "User"
+ belongs_to :appointee, :class_name => "User"
> Maybe `subject` for the person being muted?
I like `subject` much better!
I initially used `target` but didn't like it and went with `appointee` 😬 `subject` is better. I'll adjust it.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4284#discussion_r1354634626
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4284/review/1670705030 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231011/a51c3916/attachment.htm>
More information about the rails-dev
mailing list