]> git.openstreetmap.org Git - rails.git/blob - app/models/relation_member.rb
Update annotations to correctly show bigint types
[rails.git] / app / models / relation_member.rb
1 # == Schema Information
2 #
3 # Table name: current_relation_members
4 #
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
10 #
11 # Indexes
12 #
13 #  current_relation_members_member_idx  (member_type,member_id)
14 #
15 # Foreign Keys
16 #
17 #  current_relation_members_id_fkey  (relation_id => current_relations.id)
18 #
19
20 class RelationMember < ActiveRecord::Base
21   self.table_name = "current_relation_members"
22   self.primary_keys = "relation_id", "sequence_id"
23
24   belongs_to :relation, :foreign_key => :relation_id
25   belongs_to :member, :polymorphic => true
26 end