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.59 test/dummy/app/models/admin/person.rb
carnival-0.0.58 test/dummy/app/models/admin/person.rb
carnival-0.0.57 test/dummy/app/models/admin/person.rb
carnival-0.0.56 test/dummy/app/models/admin/person.rb
carnival-0.0.55 test/dummy/app/models/admin/person.rb
carnival-0.0.54 test/dummy/app/models/admin/person.rb
carnival-0.0.53 test/dummy/app/models/admin/person.rb
carnival-0.0.52 test/dummy/app/models/admin/person.rb
carnival-0.0.51 test/dummy/app/models/admin/person.rb
carnival-0.0.50 test/dummy/app/models/admin/person.rb
carnival-0.0.49 test/dummy/app/models/admin/person.rb
carnival-0.0.48 test/dummy/app/models/admin/person.rb
carnival-0.0.47 test/dummy/app/models/admin/person.rb
carnival-0.0.45 test/dummy/app/models/admin/person.rb
carnival-0.0.44 test/dummy/app/models/admin/person.rb
carnival-0.0.43 test/dummy/app/models/admin/person.rb
carnival-0.0.42 test/dummy/app/models/admin/person.rb
carnival-0.0.41 test/dummy/app/models/admin/person.rb
carnival-0.0.40 test/dummy/app/models/admin/person.rb
carnival-0.0.39 test/dummy/app/models/admin/person.rb