Sha256: 46fbf043f9f643b73f5970a2260952639980e9676f916212025cb55ace441116

Contents?: true

Size: 310 Bytes

Versions: 14

Compression:

Stored size: 310 Bytes

Contents

require 'active_record'
require 'yaml'
require 'logger'
path = File.dirname(__FILE__) + '/database.yml'
dbfile = File.open(path)
dbconfig = YAML::load(dbfile)
ActiveRecord::Base.establish_connection(dbconfig)
ActiveRecord::Base.logger = Logger.new(STDERR)

class User < ActiveRecord::Base
end

puts User.count

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
roles_active_record-0.4.0 sandbox/test.rb
roles_active_record-0.3.6 sandbox/test.rb
roles_active_record-0.3.5 sandbox/test.rb
roles_active_record-0.3.4 sandbox/test.rb
roles_active_record-0.3.3 sandbox/test.rb
roles_active_record-0.3.2 sandbox/test.rb
roles_active_record-0.3.1 sandbox/test.rb
roles_active_record-0.2.5 sandbox/test.rb
roles_active_record-0.2.4 sandbox/test.rb
roles_active_record-0.2.3 sandbox/test.rb
roles_active_record-0.2.2 sandbox/test.rb
roles_active_record-0.2.1 sandbox/test.rb
roles_active_record-0.2.0 sandbox/test.rb
roles_active_record-0.1.0 sandbox/test.rb