rails/rails — pull request #17663 by andreynering (2014-11-18 15:34:24+00:00)
Title: Improving disabling integrity of PostgreSQL

The Postgres connection adapter assumed that was ever possible to disable referential integrity, causing problems when it was not possible.

Disabling referential integrity is possible when the Postgres user is superuser. It can be verified with (SQL):

SHOW is_superuser;

It was added a warning when it is not possible to disable referential integrity, to help the developer know about problems when it is not possible.