Sha256: 0084599cd61a4d8719879fc9c3de94c7a7cd55fd54ddc5796748d37b1827b54a

Contents?: true

Size: 861 Bytes

Versions: 5

Compression:

Stored size: 861 Bytes

Contents

require 'active_support/all'
require 'active_record'

ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'

ActiveRecord::Schema.define version: 0 do
  create_table :people do |t|
    t.string :name
    t.timestamps
  end

  create_table :people_teams, id: false do |t|
    t.integer :person_id
    t.integer :team_id
  end

  create_table :teams do |t|
    t.string :name
    t.timestamps
  end

  create_table :issues do |t|
    t.string :subject
    t.integer :person_id
    t.timestamps
  end

  create_table :addresses do |t|
    t.integer :addressable_id
    t.string :addressable_type
    t.string :street
    t.timestamps
  end

  create_table :non_validated_issues do |t|
    t.string :subject
    t.integer :person_id
    t.timestamps
  end
end
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + '/debug.log')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deferring-0.2.1 spec/support/active_record.rb
deferring-0.2.0 spec/support/active_record.rb
deferring-0.1.5 spec/support/active_record.rb
deferring-0.1.4 spec/support/active_record.rb
deferring-0.1.3 spec/support/active_record.rb