Sha256: 1ce82a5ee0fd6dcfd5d18e860026ffbd503f072ce68c1d70e92e19f5afb923a9

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')

ActiveRecord::Migration.class_eval do

  create_table :models do |t|
    t.string :string_field
    t.references :associated_model
  end

  create_table :sti_models do |t|
    t.string :type
    t.string :string_field
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec_candy-0.5.1 spec/support/database.rb
rspec_candy-0.5.0 spec/support/database.rb
rspec_candy-0.4.1 spec/support/database.rb
rspec_candy-0.4.0 spec/support/database.rb