Sha256: 4a89753305a23b43a5558a76f6c2b82b91dbe5b639fa4e8df6d205a3e893b3be
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
class Company < ActiveRecord::Base extend Partitioned::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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
partitioned-1.1.1 | examples/lib/company.rb |
partitioned-1.1.0 | examples/lib/company.rb |
partitioned-1.0.1 | examples/lib/company.rb |
partitioned-0.8.0 | examples/lib/company.rb |