Sha256: 0c96b4d50547a03df4567d95e0b18fd1ba9b4852ba48fce5d9cba5f21192b740
Contents?: true
Size: 783 Bytes
Versions: 4
Compression:
Stored size: 783 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 :publishers 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 :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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reactor-1.0.2 | spec/support/active_record.rb |
reactor-1.0.1 | spec/support/active_record.rb |
reactor-1.0.0 | spec/support/active_record.rb |
reactor-0.19.0 | spec/support/active_record.rb |