Sha256: 74cff221d43ff0f7fa51198c0f3493270adeb891169a9e252a4b204bfea7b2b4

Contents?: true

Size: 552 Bytes

Versions: 31

Compression:

Stored size: 552 Bytes

Contents

require 'active_record'

ActiveRecord::Base.logger = Rails.logger
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

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
timber-1.1.14 spec/support/active_record.rb
timber-1.1.13 spec/support/active_record.rb
timber-1.1.12 spec/support/active_record.rb
timber-1.1.11 spec/support/active_record.rb
timber-1.1.10 spec/support/active_record.rb
timber-1.1.9 spec/support/active_record.rb
timber-1.1.8 spec/support/active_record.rb
timber-1.1.7 spec/support/active_record.rb
timber-1.1.6 spec/support/active_record.rb
timber-1.1.5 spec/support/active_record.rb
timber-1.1.4 spec/support/active_record.rb
timber-1.1.3 spec/support/active_record.rb
timber-1.1.2 spec/support/active_record.rb
timber-1.1.1 spec/support/active_record.rb
timber-1.1.0 spec/support/active_record.rb
timber-1.0.13 spec/support/active_record.rb
timber-1.0.12 spec/support/active_record.rb
timber-1.0.11 spec/support/active_record.rb
timber-1.0.10 spec/support/active_record.rb
timber-1.0.9 spec/support/active_record.rb