Sha256: 78c9592411e05e4cae10c2b35304c7929221be04a40bca62a204038c6be7a88d
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
# Post 是岗位。 class Unidom::Position::Post < ActiveRecord::Base self.table_name = 'unidom_posts' include Unidom::Common::Concerns::ModelExtension validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit } belongs_to :organization, polymorphic: true belongs_to :position, class_name: 'Unidom::Position::Position' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-position-0.1 | app/models/unidom/position/post.rb |