mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 03:33:45 +08:00
30990006a9
This reduces chances of errors where consumers of strings mutate inputs and reduces memory usage of the app. Test suite passes now, but there may be some stuff left, so we will run a few sites on a branch prior to merging
23 lines
520 B
Ruby
23 lines
520 B
Ruby
# frozen_string_literal: true
|
|
|
|
class GroupMention < ActiveRecord::Base
|
|
belongs_to :post
|
|
belongs_to :group
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: group_mentions
|
|
#
|
|
# id :integer not null, primary key
|
|
# post_id :integer
|
|
# group_id :integer
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_group_mentions_on_group_id_and_post_id (group_id,post_id) UNIQUE
|
|
# index_group_mentions_on_post_id_and_group_id (post_id,group_id) UNIQUE
|
|
#
|