Sha256: eb3d00a5a750fed4bee1b1aa32881d3ad597ffdc21449a209ac4e0199252499b

Contents?: true

Size: 639 Bytes

Versions: 28

Compression:

Stored size: 639 Bytes

Contents

require 'active_record'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"

ActiveRecord::Migrator.up "db/migrate"

ActiveRecord::Migration.create_table :auctions do |t|
  t.string :name
  t.datetime :start_at
  t.datetime :close_at
  t.integer :pet_id

  t.timestamps
end

ActiveRecord::Migration.create_table :subscribers do |t|
  t.string :event
  t.string :type

  t.timestamps
end

ActiveRecord::Migration.create_table :pets do |t|
  t.integer :awesomeness
  t.string :type


  t.timestamps
end

ActiveRecord::Migration.create_table :arbitrary_models do |t|
  t.integer :awesomeness

  t.timestamps
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
reactor-0.6.2 spec/support/active_record.rb
reactor-0.6.1 spec/support/active_record.rb
reactor-0.6.0 spec/support/active_record.rb
reactor-0.5.3 spec/support/active_record.rb
reactor-0.5.2 spec/support/active_record.rb
reactor-0.5.1 spec/support/active_record.rb
reactor-0.5.0 spec/support/active_record.rb
reactor-0.4.7 spec/support/active_record.rb
reactor-0.4.6 spec/support/active_record.rb
reactor-0.4.5 spec/support/active_record.rb
reactor-0.4.4 spec/support/active_record.rb
reactor-0.4.3 spec/support/active_record.rb
reactor-0.4.2 spec/support/active_record.rb
reactor-0.4.0 spec/support/active_record.rb
reactor-0.3.2 spec/support/active_record.rb
reactor-0.3.1 spec/support/active_record.rb
reactor-0.3.0 spec/support/active_record.rb
reactor-0.2.10 spec/support/active_record.rb
reactor-0.2.9 spec/support/active_record.rb
reactor-0.2.8 spec/support/active_record.rb