Sha256: 9ddbacfc41b4dd5bc7abb7a62d465661ef00fc00240dc7ac32c81f995e3fc91f

Contents?: true

Size: 921 Bytes

Versions: 12

Compression:

Stored size: 921 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 null: false
  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 null: false
  end

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
deferring-0.8.2 spec/support/active_record.rb
deferring-0.8.1 spec/support/active_record.rb
deferring-0.8.0 spec/support/active_record.rb
deferring-0.7.1 spec/support/active_record.rb
deferring-0.7.0 spec/support/active_record.rb
deferring-0.6.2 spec/support/active_record.rb
deferring-0.6.1 spec/support/active_record.rb
deferring-0.6.0 spec/support/active_record.rb
deferring-0.5.0 spec/support/active_record.rb
deferring-0.4.1 spec/support/active_record.rb
deferring-0.4.0 spec/support/active_record.rb
deferring-0.3.0 spec/support/active_record.rb