When updating a site setting, ERROR: zero-length delimited identifier

That obviously should be WHERE "site_settings"."id" = 20. Something went wrong in Rails loading the schema, or something.