Sha256: e0a0f5cf86d87ef3d7a09bae8633b570c6a2f411297dc1a04b75a6570b033c4c
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 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 end ActiveRecord::Migration.create_table :subscribers do |t| t.string :event_name 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 class Pet < ActiveRecord::Base end class ArbitraryModel < ActiveRecord::Base end
Version data entries
6 entries across 6 versions & 1 rubygems