Sha256: 02987e6dd579ee407623e04fe09130b0afc57266a4675b98b8e6f994f2b2096b
Contents?: true
Size: 437 Bytes
Versions: 3
Compression:
Stored size: 437 Bytes
Contents
# Occupation ζ―θδΈγ class Unidom::Position::Occupation < ActiveRecord::Base self.table_name = 'unidom_occupations' include Unidom::Common::Concerns::ModelExtension validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit } belongs_to :scheme, polymorphic: true has_many :positions, class_name: 'Unidom::Position::Position' has_many :posts, through: :positions, source: :posts end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unidom-position-1.0 | app/models/unidom/position/occupation.rb |
unidom-position-0.2 | app/models/unidom/position/occupation.rb |
unidom-position-0.1 | app/models/unidom/position/occupation.rb |