This is the first time I've tried out Rails with PostgreSQL. I am confused by the lack of timestamp with timezone
usage in code I usually see regarding columns storing absolute time. A prime example is devise, it stores columns a datetime column which translates to a timestamp with out timezone
in PostgreSQL.
I consider it a bad practice because timestamp with out timezone
could mean any time zone. If you were accessing the database from another application, you would have no idea which time zone the timestamp references without looking at Rails. It just becomes a decentralized mess.
Is there any way for me to create a timestamp with time zone
in a ActiveRecord migration/schema for PostgreSQL? Will create incompatibility issues with the current Rails framework code?
I understand ActiveRecord tries to be database-agnostic, but this is just a pet peeve I cannot ignore.