我正在尝试使用以下命令将我的 rails db 推送到 heroku:heroku run rake db:migrate 并收到以下错误:
= 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