Sha256: ba262e8f124eb751f11b3c9b3760e2d06979317431950bb497a1517b94393257

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

# Establish connection to in-memory SQLite DB
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"

# Create the coffee table
ActiveRecord::Migration.verbose = false
ActiveRecord::Migration.create_table :coffees do |t|
  t.string :sort
  t.integer :price
  t.integer :saturation
end

# Create model
class Coffee < ActiveRecord::Base; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lumos-0.0.2 spec/active_record_helper.rb
lumos-0.0.1 spec/active_record_helper.rb