Sha256: 4955be3954be6d66ef8f63774502a8004bec92f11a74063e9a35a05a6505250a
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
require 'active_record' require 'mysql2' require 'logger' require 'rspec/rails/adapters' require 'rspec/rails/fixture_support' ROOT = File.join(File.dirname(__FILE__), '..') ActiveRecord::Base.logger = Logger.new('tmp/ar_debug.log') ActiveRecord::Base.configurations = YAML::load(IO.read('spec/support/database.yml')) ActiveRecord::Base.establish_connection('test') ActiveRecord::Schema.define :version => 0 do create_table :items, :force => true do |t| t.string :name t.boolean :active t.string :body end end class Item < ActiveRecord::Base end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thebes-0.0.3 | spec/support/active_record.rb |