Sha256: 5d7d0d01b4784f2bbe1b5abdda4679dfb34b6b290b678f23c2e603ba9e60607a

Contents?: true

Size: 222 Bytes

Versions: 6

Compression:

Stored size: 222 Bytes

Contents

class Company < ActiveRecord::Base
  belongs_to :owner, foreign_key: :owner_id, class_name: 'User'
  belongs_to :country

  has_one :address, as: :addressable

  has_many :users

  has_and_belongs_to_many :freelancers
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lol_dba-2.4.0 spec/fixtures/app/models/company.rb
lol_dba-2.2.0 spec/fixtures/app/models/company.rb
lol_dba-2.1.9 spec/fixtures/app/models/company.rb
lol_dba-2.1.8 spec/fixtures/app/models/company.rb
lol_dba-2.1.7 spec/fixtures/app/models/company.rb
lol_dba-2.1.6 spec/fixtures/app/models/company.rb