Sha256: 17b4ab400fed3bd02a4bb26602c0c05dfe459c4f2880824d3021c06b1f8afd9c

Contents?: true

Size: 734 Bytes

Versions: 5

Compression:

Stored size: 734 Bytes

Contents

require "bundler/setup"
require "active_record"

ActiveRecord::Base.establish_connection(ENV.fetch('DATABASE_URL'))
ActiveRecord::Migration.verbose = false

ActiveRecord::Schema.define do
  create_table :users, force: true do |t|
    t.string :name
    t.string :email
    t.boolean :approved
    t.integer :age
    t.datetime :birthday
    t.timestamps null: false
  end
end

class User < ActiveRecord::Base; end

attributes = {
  name: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
  email: "foobar@email.com",
  approved: false,
  age: 51,
  birthday: DateTime.now
}

1000.times do
  User.create!(attributes)
end

User.create!(
  name: 'kir', 
  email: 'shatrov@me.com', 
  approved: true,
  birthday: DateTime.now
)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubybench_runner-0.1.4 lib/rubybench_runner/support/setup/bm_finders_setup.rb
rubybench_runner-0.1.3 lib/rubybench_runner/support/setup/bm_finders_setup.rb
rubybench_runner-0.1.2 lib/rubybench_runner/support/setup/bm_finders_setup.rb
rubybench_runner-0.1.1 lib/rubybench_runner/support/setup/bm_finders_setup.rb
rubybench_runner-0.1.0 lib/rubybench_runner/support/setup/bm_finders_setup.rb