Sha256: 00f6d325f39b6d7a0b49a927ca95068af8de8e9cf6c26f720974a1ad5a64b6af

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

##
# Shop 是店铺。

class Unidom::Party::Shop < Unidom::Party::ApplicationRecord

  self.table_name = 'unidom_shops'

  include Unidom::Common::Concerns::ModelExtension
  include Unidom::Party::Concerns::AsSourceParty
  include Unidom::Party::Concerns::AsTargetParty

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-party-1.8.4 app/models/unidom/party/shop.rb