aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-03-11 14:21:26 +0100
committerYves Senn <yves.senn@gmail.com>2015-03-11 14:21:26 +0100
commit598b841882cbfe1d88c55b9cc49a5a188735d0b1 (patch)
tree7213519257c9e169c7d7ec76c020dc7ed1f84f2b /activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb
parent93702fd97893e85623603d7f7c7038e946f30429 (diff)
downloadrails-598b841882cbfe1d88c55b9cc49a5a188735d0b1.tar.gz
rails-598b841882cbfe1d88c55b9cc49a5a188735d0b1.tar.bz2
rails-598b841882cbfe1d88c55b9cc49a5a188735d0b1.zip
fix typo in transaction argument. Closes #19265.
There was a typo in the `:requires_new` option. This led to `#<ArgumentError: unknown keyword: require_new>` leaving all the triggers in a disabled state.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb2
1 files changed, 1 insertions, 1 deletions
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