Sha256: a1d7db582b86d3b629c0babd658640815c099678a65f742916ce867f3aa5bf3d

Contents?: true

Size: 552 Bytes

Versions: 4

Compression:

Stored size: 552 Bytes

Contents

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

ActiveRecord::Migration.class_eval do

  create_table :records do |t|
    t.string :persisted_string
    t.integer :persisted_integer
    t.datetime :persisted_time
    t.date :persisted_date
    t.boolean :persisted_boolean
  end

  create_table :children do |t|
    t.integer :record_id
  end

  create_table :sti_records do |t|
    t.string :persisted_string
    t.string :type
  end

  create_table :other_records do |t|
    t.string :other_string
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_type-0.3.1 spec/support/database.rb
active_type-0.3.0 spec/support/database.rb
active_type-0.2.1 spec/support/database.rb
active_type-0.2.0 spec/support/database.rb