don't forget to turn on time_zone_aware_attributes in AR benchmark

This commit is contained in:
Brian Lopez 2010-07-29 08:57:05 -07:00
parent 89401acff4
commit 1e258c9d9c
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ require 'rubygems'
require 'benchmark'
require 'active_record'
ActiveRecord::Base.default_timezone = 'Pacific Time (US & Canada)'
ActiveRecord::Base.time_zone_aware_attributes = true
number_of = 10
mysql2_opts = {
:adapter => 'mysql2',