2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-11-30 23:52:43 -06:00
|
|
|
class GroupMention < ActiveRecord::Base
|
|
|
|
belongs_to :post
|
|
|
|
belongs_to :group
|
|
|
|
end
|
2016-01-11 00:30:56 -06:00
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: group_mentions
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# post_id :integer
|
|
|
|
# group_id :integer
|
2019-01-11 13:29:56 -06:00
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2016-01-11 00:30:56 -06:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|