Sha256: 2422293a12cb170425ad56971374a7693c5fa718a97a44b8cce61e6871dfd6d1

Contents?: true

Size: 619 Bytes

Versions: 6

Compression:

Stored size: 619 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.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

6 entries across 6 versions & 1 rubygems

Version Path
reactor-0.1.4 spec/support/active_record.rb
reactor-0.1.3 spec/support/active_record.rb
reactor-0.1.2 spec/support/active_record.rb
reactor-0.1.1 spec/support/active_record.rb
reactor-0.1.0 spec/support/active_record.rb
reactor-0.0.1 spec/support/active_record.rb