I noticed this error this morning. Trying to use this database model with a live application causes errors because we've used the reserved word 'end' in the DB model. It was causing syntax errors to be thrown in my project while trying to filter out data.
Error log:
ActionView::Template::Error (PG::SyntaxError: ERROR: syntax error at or near "end"
LINE 1: ...* FROM "events" WHERE "events"."user_id" = 2 AND (end < '201...
Solution:
Update the database model to use the keyword 'ends' instead of 'end'. I've made a PR this afternoon that should fix the issue.
I noticed this error this morning. Trying to use this database model with a live application causes errors because we've used the reserved word 'end' in the DB model. It was causing syntax errors to be thrown in my project while trying to filter out data.
Error log:
Solution:
Update the database model to use the keyword 'ends' instead of 'end'. I've made a PR this afternoon that should fix the issue.