Sha256: 163b0e2ae66ec6b19dab1463bbff2cbf1291f335cf657b2033581faeadd3b9ac
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'active_record' ActiveRecord::Base.establish_connection({ adapter: 'sqlite3', database: ':memory:' }) # prepare test data class CreateTestSchema < ActiveRecord::Migration def change create_table "users", :force => true do |t| t.string "name" t.integer "age" end create_table "phone_numbers", :force => true do |t| t.integer "user_id" t.string "number" end end end CreateTestSchema.migrate(:up)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trans_forms-0.1.0 | spec/support/schema.rb |