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

Version Path
thinking-sphinx-1.5.0 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.14 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.13 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.12 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.11 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.10 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.9 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.8 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-2.0.7 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-2.0.6 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.7 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-2.0.5 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.6 features/thinking_sphinx/db/fixtures/robots.rb
sayso-thinking-sphinx-2.0.3.002 features/thinking_sphinx/db/fixtures/robots.rb
sayso-thinking-sphinx-2.0.3.001 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-2.0.4 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.5 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-2.0.3 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.4 features/thinking_sphinx/db/fixtures/robots.rb
thinking-sphinx-1.4.3 features/thinking_sphinx/db/fixtures/robots.rb