aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-10-18 10:07:40 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-10-18 10:07:40 -0700
commit76af2818a6b729955ad799b5346da7ed115440ea (patch)
tree2ce235f7e5d7c53c3b3665d91fb90b6732a1b1ec /activerecord/test
parent5e1b912f3b3a81cec99a3743b3a9d21e5c96d97c (diff)
downloadrails-76af2818a6b729955ad799b5346da7ed115440ea.tar.gz
rails-76af2818a6b729955ad799b5346da7ed115440ea.tar.bz2
rails-76af2818a6b729955ad799b5346da7ed115440ea.zip
use now() for dates in pg
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 4b5dd18be8..6ce7ae7877 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -475,7 +475,7 @@ if ActiveRecord::Base.connection.supports_migrations?
elsif current_adapter?(:OpenBaseAdapter) || (current_adapter?(:MysqlAdapter) && Mysql.client_version < 50003) #before mysql 5.0.3 decimals stored as strings
Person.connection.execute "insert into people (wealth, created_at, updated_at) values ('12345678901234567890.0123456789', 0, 0)"
else
- Person.connection.execute "insert into people (wealth, created_at, updated_at) values (12345678901234567890.0123456789, 0, 0)"
+ Person.connection.execute "insert into people (wealth, created_at, updated_at) values (12345678901234567890.0123456789, now(), now())"
end
# SELECT