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"
24 belongs_to :member, :polymorphic => true
26 validates :member_role, :allow_blank => true, :length => { :maximum => 255 }, :characters => true