Sha256: 5253e3795c16e7d72bc6c16a9f11b8fb540967a940ca09abbbd052a7586cdaea

Contents?: true

Size: 455 Bytes

Versions: 29

Compression:

Stored size: 455 Bytes

Contents

module Admin
  class Person < ActiveRecord::Base
    self.table_name = "people"

    belongs_to :company
    belongs_to :country
    belongs_to :state
    belongs_to :city
    has_many :professional_experiences
    has_many :companies, :through => :professional_experiences
    has_many :jobs, :through => :professional_experiences

    scope :employed, -> {where("employed = ?", true)}
    scope :unemployed, -> {where("employed = ?", false)}

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
carnival-0.0.38 test/dummy/app/models/admin/person.rb
carnival-0.0.37 test/dummy/app/models/admin/person.rb
carnival-0.0.36 test/dummy/app/models/admin/person.rb
carnival-0.0.35 test/dummy/app/models/admin/person.rb
carnival-0.0.34 test/dummy/app/models/admin/person.rb
carnival-0.0.33 test/dummy/app/models/admin/person.rb
carnival-0.0.26 test/dummy/app/models/admin/person.rb
carnival-0.0.11 test/dummy/app/models/admin/person.rb
carnival-0.0.10 test/dummy/app/models/admin/person.rb