I’m trying to do a db:push to Heroku, but am getting this error:
!!! Caught Server Exception
HTTP CODE: 500
Taps Server Error: PGError: ERROR: column "is_required" is of type boolean but expression is of type integer
LINE 1: ..." ("id", "question_id", "text", "response_class", "is_requir...
^
HINT: You will need to rewrite or cast the expression.
I’m pushing from my local database (which is sqlite) to Heroku’s PostgreSQL database.
The is_required column is set as a boolean using t.boolean "is_required", :default => false.
Not sure what to do here.
Playing around in pgAdmin; it looks like postgres prefers the defaults in the form of
't'or'f'. I don’t have a ruby install to try it on, though.