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.6.2 spec/support/active_record.rb
timber-2.6.1 spec/support/active_record.rb
timber-2.6.0 spec/support/active_record.rb
timber-2.6.0.pre.beta2 spec/support/active_record.rb
timber-2.6.0.pre.beta1 spec/support/active_record.rb
timber-2.5.1 spec/support/active_record.rb
timber-2.5.0 spec/support/active_record.rb
timber-2.4.0 spec/support/active_record.rb
timber-2.3.4 spec/support/active_record.rb
timber-2.3.3 spec/support/active_record.rb
timber-2.3.2 spec/support/active_record.rb
timber-2.3.1 spec/support/active_record.rb
timber-2.3.0 spec/support/active_record.rb
timber-2.2.3 spec/support/active_record.rb
timber-2.2.2 spec/support/active_record.rb
timber-2.2.1 spec/support/active_record.rb
timber-2.2.0 spec/support/active_record.rb
timber-2.1.10 spec/support/active_record.rb
timber-2.1.9 spec/support/active_record.rb
timber-2.1.8 spec/support/active_record.rb