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

Version Path
unidom-position-2.0 app/models/unidom/position/post.rb
unidom-position-1.5.9 app/models/unidom/position/post.rb
unidom-position-1.5.8 app/models/unidom/position/post.rb
unidom-position-1.5.7 app/models/unidom/position/post.rb
unidom-position-1.5.6 app/models/unidom/position/post.rb
unidom-position-1.5.5 app/models/unidom/position/post.rb
unidom-position-1.5.4 app/models/unidom/position/post.rb
unidom-position-1.5.3 app/models/unidom/position/post.rb
unidom-position-1.5.2 app/models/unidom/position/post.rb
unidom-position-1.5.1 app/models/unidom/position/post.rb
unidom-position-1.5 app/models/unidom/position/post.rb
unidom-position-1.4.5 app/models/unidom/position/post.rb