1 # == Schema Information
3 # Table name: current_relation_members
5 # relation_id :bigint(8) not null, primary key
6 # member_type :enum not null
7 # member_id :bigint(8) not null
8 # member_role :string not null
9 # sequence_id :integer default(0), not null, primary key
13 # current_relation_members_member_idx (member_type,member_id)
17 # current_relation_members_id_fkey (relation_id => current_relations.id)
20 class RelationMember < ApplicationRecord
21 self.table_name = "current_relation_members"
22 self.primary_keys = "relation_id", "sequence_id"
25 belongs_to :member, :polymorphic => true