Sha256: 7f4fbb8b72baa89f0b6fd2a60b50876bf9793b5ce255b46ee1e8139383df166f

Contents?: true

Size: 799 Bytes

Versions: 12

Compression:

Stored size: 799 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.boolean :we_want_it
  t.integer :pet_id

  t.timestamps null: false
end

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

  t.timestamps null: false
end

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


  t.timestamps null: false
end

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

  t.timestamps null: false
end

class Pet < ActiveRecord::Base
end

class ArbitraryModel < ActiveRecord::Base
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reactor-0.13.0 spec/support/active_record.rb
reactor-0.12.2 spec/support/active_record.rb
reactor-0.12.1 spec/support/active_record.rb
reactor-0.11.4 spec/support/active_record.rb
reactor-0.11.2 spec/support/active_record.rb
reactor-0.11.1 spec/support/active_record.rb
reactor-0.11.0 spec/support/active_record.rb
reactor-0.10.1 spec/support/active_record.rb
reactor-0.10.0 spec/support/active_record.rb
reactor-0.9.9 spec/support/active_record.rb
reactor-0.9.8 spec/support/active_record.rb
reactor-0.9.7 spec/support/active_record.rb