Sha256: b47826ffb9e38153248ee727d07cf2cf43ea48adfa3e5f9716626431937a410b
Contents?: true
Size: 574 Bytes
Versions: 12
Compression:
Stored size: 574 Bytes
Contents
## # Post 是岗位。 class Unidom::Position::Post < Unidom::Position::ApplicationRecord self.table_name = 'unidom_posts' include Unidom::Common::Concerns::ModelExtension include Unidom::Position::Concerns::AsInferiorPost include Unidom::Position::Concerns::AsSuperiorPost 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 unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Position::Post'
Version data entries
12 entries across 12 versions & 1 rubygems