i'm trying the following:
user_calendars.where("extract(day from time_from) = ? ", next_day)
But i keep getting this Error:
PG::InvalidTextRepresentation: ERROR: invalid input syntax for type double precision: "Saturday" LINE 1: ..."user_id" = $1 AND (extract(day from time_from) = 'Saturday'...
Not sure why it points out type double.