I am trying to deploy my code to heroku and i get the error
-- execute("ALTER TABLE lodges ALTER COLUMN image TYPE integer USING (image::integer)")
PG::Error: ERROR: invalid input syntax for integer: ""
: ALTER TABLE lodges ALTER COLUMN image TYPE integer USING (image::integer)
rake aborted!
and my migration is
class ChangeDataTypeForLodgesImage < ActiveRecord::Migration
def change
execute "ALTER TABLE lodges ALTER COLUMN image TYPE integer USING (image::integer)"
end
end