Sha256: 257a778d38b4809ffad28041fde7a2a771e044bd6feca014351459454bd8c29f

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

# Party Relation 是参与者关系。

class Unidom::Party::PartyRelation < ActiveRecord::Base

  self.table_name = 'unidom_party_relations'

  validates :grade,    presence: true, numericality: { integer_only: true }
  validates :priority, presence: true, numericality: { integer_only: true }

  belongs_to :source_party, polymorphic: true
  belongs_to :target_party, polymorphic: true

  include Unidom::Common::Concerns::ModelExtension

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-party-0.5 app/models/unidom/party/party_relation.rb