diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-03-11 14:21:26 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-03-11 14:21:26 +0100 |
commit | 598b841882cbfe1d88c55b9cc49a5a188735d0b1 (patch) | |
tree | 7213519257c9e169c7d7ec76c020dc7ed1f84f2b /activerecord/lib | |
parent | 93702fd97893e85623603d7f7c7038e946f30429 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/referential_integrity.rb | 2 |
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 |