Permalink
Browse files

use now() for dates in pg

  • Loading branch information...
1 parent 5e1b912 commit 76af2818a6b729955ad799b5346da7ed115440ea @tenderlove tenderlove committed Oct 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/migration_test.rb
@@ -475,7 +475,7 @@ def test_native_decimal_insert_manual_vs_automatic
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

0 comments on commit 76af281

Please sign in to comment.