From 598b841882cbfe1d88c55b9cc49a5a188735d0b1 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Wed, 11 Mar 2015 14:21:26 +0100 Subject: fix typo in transaction argument. Closes #19265. There was a typo in the `:requires_new` option. This led to `#` leaving all the triggers in a disabled state. --- .../connection_adapters/postgresql/referential_integrity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb b/activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb index c1835380f9..0ed8e72ea7 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb @@ -34,7 +34,7 @@ Rails needs superuser privileges to disable referential integrity. end begin - transaction(require_new: true) do + transaction(requires_new: true) do execute(tables.collect { |name| "ALTER TABLE #{quote_table_name(name)} ENABLE TRIGGER ALL" }.join(";")) end rescue -- cgit v1.2.3