Sha256: b7dc046489d34dca5dc75b6a64384246dc2e177e2db50bee304e8897f59d3de7

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 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 }

  include Unidom::Common::Concerns::ModelExtension

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unidom-party-0.3 app/models/unidom/party/shop.rb
unidom-party-0.2 app/models/unidom/party/shop.rb