JC: added self.primary_key = :id to model engine_config to fix "ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR:  zero-length delimited identifier at or near """"" in production (table was not created by rails???).