Sha256: 4308bb27fa56589d49acbb46930406fbb7e002d018aa9e15efb8321a1f7f27cc

Contents?: true

Size: 741 Bytes

Versions: 18

Compression:

Stored size: 741 Bytes

Contents

class Company < ActiveRecord::Base
  extend BulkMethodsMixin
  has_many :employees, :class_name => 'Company', :conditions => "companies.id = employees.companies_id"

  connection.execute <<-SQL
    create table companies
    (
        id               serial not null primary key,
        created_at       timestamp not null default now(),
        updated_at       timestamp,
        name             text null
    );
  SQL
end

COMPANIES = [
             {
               :name => 'Fluent Mobile, inc.'
             },
             {
               :name => 'Fiksu, inc.'
             },
             {
               :name => 'AppExchanger, inc.'
             },
             {
               :name => 'FreeMyApps, inc.'
             },
]

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
partitioned-2.1.0 examples/lib/company.rb
partitioned-2.0.0 examples/lib/company.rb
partitioned-1.3.5 examples/lib/company.rb
partitioned-1.3.4 examples/lib/company.rb
partitioned-1.3.3 examples/lib/company.rb
partitioned-1.3.2 examples/lib/company.rb
partitioned-1.3.1 examples/lib/company.rb
partitioned-1.3.0 examples/lib/company.rb
partitioned-1.2.1 examples/lib/company.rb
partitioned-1.2.0 examples/lib/company.rb
partitioned-1.1.11 examples/lib/company.rb
partitioned-1.1.10 examples/lib/company.rb
partitioned-1.1.9 examples/lib/company.rb
partitioned-1.1.8 examples/lib/company.rb
partitioned-1.1.7 examples/lib/company.rb
partitioned-1.1.6 examples/lib/company.rb
partitioned-1.1.5 examples/lib/company.rb
partitioned-1.1.3 examples/lib/company.rb