method
set_constraints
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements
set_constraints(deferred, *constraints)public
Set when constraints will be checked for the current transaction.
Not passing any specific constraint names will set the value for all deferrable constraints.
- deferred
-
Valid values are :deferred or :immediate.
See www.postgresql.org/docs/current/sql-set-constraints.html