Sha256: 071d1f085bd789d5f0e071c6e4bd6879e35f8f7e6dd51ce14b843c402457703b

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

# == Schema Information
#
# Table name: positions
#
#  id                   :integer          not null, primary key
#  name                 :string(255)
#  created_at           :datetime
#  updated_at           :datetime
#  position_category_id :integer
#

class Position < ActiveRecord::Base
  has_many :employees, inverse_of: :position
  belongs_to :position_category, class_name: "PositionCategory", inverse_of: :positions
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
basepack-1.0.1 spec/dummy_app/app/models/position.rb
basepack-1.0.0 spec/dummy_app/app/models/position.rb
basepack-1.0.0.pre.0 spec/dummy_app/app/models/position.rb
basepack-0.2.0 spec/dummy_app/app/models/position.rb