Sha256: c77a927fb0fe062c26f0b8d8f41d5d1da9d414a03af1149597dc340486f07c3c

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

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

class PositionCategory < ActiveRecord::Base
  has_many :positions, class_name: "Position", foreign_key: "position_category_id", inverse_of: :position_category
  has_many :employees, class_name: "Employee", foreign_key: "position_category_id", inverse_of: :position_category
end

Version data entries

4 entries across 4 versions & 1 rubygems

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