Hello, please tell me how to fix this error?
max-PC% heroku run rake db:migrate Running rake db:migrate on maxprof-cinema... up, run.8028 == 20160428140718 ChangeDateFieldTypeBack: migrating ========================== -- change_column(:film_sessions, :date, :date) rake aborted! StandardError: An error has occurred, this and all later migrations canceled: PG::DatatypeMismatch: ERROR: column "date" cannot be cast automatically to type date HINT: You might need to specify "USING date::date". ALTER TABLE "film_sessions" ALTER COLUMN "date" TYPE date I do not understand where to register it: USING date::date
Falling migration:
class ChangeDateFieldTypeBack < ActiveRecord::Migration def change change_column(:film_sessions, :date, :date) end end