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