Sha256: b42af9525529a1e4f1d3eb413a6f89d12ea2322fbae028aff66f2931cb2e185a

Contents?: true

Size: 614 Bytes

Versions: 57

Compression:

Stored size: 614 Bytes

Contents

begin
  require 'active_record'
rescue LoadError
end

if defined?(::ActiveRecord::Base)
  ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
  ActiveRecord::Schema.define do
    self.verbose = false

    create_table :organizations, :force => true do |t|
      t.string :name

      t.timestamps :null => false
    end

    create_table :users, :force => true do |t|
      t.integer :age
      t.string :email
      t.string :first_name

      t.timestamps :null => false
    end

  end

  class Organization < ::ActiveRecord::Base
  end

  class User < ::ActiveRecord::Base
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
timber-2.0.17 spec/support/active_record.rb
timber-2.0.16 spec/support/active_record.rb
timber-2.0.15 spec/support/active_record.rb
timber-2.0.14 spec/support/active_record.rb
timber-2.0.12 spec/support/active_record.rb
timber-2.0.11 spec/support/active_record.rb
timber-2.0.10 spec/support/active_record.rb
timber-2.0.9 spec/support/active_record.rb
timber-2.0.8 spec/support/active_record.rb
timber-2.0.7 spec/support/active_record.rb
timber-2.0.6 spec/support/active_record.rb
timber-2.0.5 spec/support/active_record.rb
timber-2.0.4 spec/support/active_record.rb
timber-2.0.3 spec/support/active_record.rb
timber-2.0.2 spec/support/active_record.rb
timber-2.0.1 spec/support/active_record.rb
timber-2.0.0 spec/support/active_record.rb