Sha256: 9ef7d99ed22525a57d27fc137bd825e88466d8af28613a5844fb15003888ac3c

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

##
# Person 是个人。

class Unidom::Party::Person < Unidom::Party::ApplicationRecord

  self.table_name = 'unidom_people'

  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/person.rb