diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-09-27 23:37:57 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-09-27 23:37:57 +0000 |
commit | 0bd11857ef47d9c8228d9c1d8268a7a35768966b (patch) | |
tree | 16bbaabbbca682883ec2e6172b7cb43621d263fd /activerecord/test/fixtures | |
parent | e1024e50cf72ade51b1b2231f1ba6649b4826b7d (diff) | |
download | rails-0bd11857ef47d9c8228d9c1d8268a7a35768966b.tar.gz rails-0bd11857ef47d9c8228d9c1d8268a7a35768966b.tar.bz2 rails-0bd11857ef47d9c8228d9c1d8268a7a35768966b.zip |
Ticket 2256 - Recognize PostgreSQL NOW() default as equivalent to CURRENT_TIMESTAMP/CURRENT_DATE
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/postgresql.sql | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/postgresql.sql b/activerecord/test/fixtures/db_definitions/postgresql.sql index 21ca82a4ab..c8cfcb779c 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.sql +++ b/activerecord/test/fixtures/db_definitions/postgresql.sql @@ -102,8 +102,10 @@ CREATE TABLE booleantests ( CREATE TABLE defaults ( id serial, modified_date date default CURRENT_DATE, + modified_date_function date default now(), fixed_date date default '2004-01-01', modified_time timestamp default CURRENT_TIMESTAMP, + modified_time_function timestamp default now(), fixed_time timestamp default '2004-01-01 00:00:00.000000-00', char1 char(1) default 'Y', char2 character varying(50) default 'a varchar field', |