$ psql trackmap_development
[...]
trackmap_development=# \d points
Table "public.points"
Column | Type | Modifiers
--------------+--------------------------+-------------------------------------------------
id | integer | not null default nextval('points_id_seq'::text)
route_id | integer | not null
position | integer |
latitude | double precision | not null
longitude | double precision | not null
elevation | integer |
time | timestamp with time zone |
lock_version | integer | not null default 0
[...]
You can see the "time" column that has a type of 'timestamp with time zone' in my development database.
$ psql trackmap_test
[...]
trackmap_test=# \d points
Table "public.points"
Column | Type | Modifiers
--------------+-----------------------------+---------------------------------------------------------
id | integer | not null default nextval('public.points_id_seq1'::text)
route_id | integer | not null
position | integer |
latitude | double precision | not null
longitude | double precision | not null
elevation | integer |
time | timestamp without time zone |
lock_version | integer | not null default 0
[...]
But after I run rake test and the test database gets created it was switched to 'timestamp without time zone'.
Rails should be preserving the 'with time zone' part of my timestamp.