Sha256: e61407a87dd4c776caa8730e55dce0c966a3d5e5f4505451f68357bace99ba1c

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

# Shop 是店铺。

class Unidom::Party::Shop < ActiveRecord::Base

  self.table_name = 'unidom_shops'

  validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }

  has_many :source_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :target_party
  has_many :target_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :source_party

  include Unidom::Common::Concerns::ModelExtension

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unidom-party-0.6 app/models/unidom/party/shop.rb
unidom-party-0.5 app/models/unidom/party/shop.rb
unidom-party-0.4.1 app/models/unidom/party/shop.rb
unidom-party-0.4 app/models/unidom/party/shop.rb