Sha256: fe4f60257eedd25783584679f0e3da2f954417a37e00d7f3c93f34d8c8b1e2bd
Contents?: true
Size: 494 Bytes
Versions: 77
Compression:
Stored size: 494 Bytes
Contents
# Reset the primary key to allow us to create robots with specific internal_ids class Robot < ActiveRecord::Base set_primary_key :alternate_primary_key end Robot.create :name => 'Fritz', :internal_id => 'F0001' Robot.create :name => 'Sizzle', :internal_id => 'S0001' Robot.create :name => 'Sizzle Jr.', :internal_id => 'S0002' Robot.create :name => 'Expendable', :internal_id => 'E0001' # Annnnnnnnnnd we're back class Robot < ActiveRecord::Base set_primary_key :internal_id end
Version data entries
77 entries across 77 versions & 14 rubygems