Add method check_params to Concerns::Postgres to pass the parameter names to check for valid ids.
The id validation is executed only when params contains the name, so isn't required to pass nil to valid_id.