I'm trying to push my rails db to heroku using: heroku run rake db:migrate and getting the following error:
= ChangeDateFormatInMyTable: migrating ======================================
-- change_column(:users, :date_of_birth, :datetime)
rake aborted!
An error has occurred, this and all later migrations canceled:
PG::Error: ERROR: column "date_of_birth" cannot be cast to type "pg_catalog.timestamp"
: ALTER TABLE "users" ALTER COLUMN "date_of_birth" TYPE timestamp
change_columnif it’s already adatetime? Showing the migration code for everything involving:date_of_birthwould help.