aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorfatkodima <fatkodima123@gmail.com>2018-03-16 07:19:40 +0200
committerRafael França <rafaelmfranca@gmail.com>2018-03-16 01:19:40 -0400
commit471bec310d1ecc50311f18b545df1d789d6bac0d (patch)
tree44d83b4a877fa20211e3376f3cf92c79fc3e6b0e /activerecord/lib
parent81843bcf65f1f5fce0bab1d1437e2815eb20e904 (diff)
downloadrails-471bec310d1ecc50311f18b545df1d789d6bac0d.tar.gz
rails-471bec310d1ecc50311f18b545df1d789d6bac0d.tar.bz2
rails-471bec310d1ecc50311f18b545df1d789d6bac0d.zip
Fix multiline expression indexes for postgresql (#31621)
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index 45b230f0f9..e20e5f2914 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -107,7 +107,7 @@ module ActiveRecord
oid = row[4]
comment = row[5]
- using, expressions, where = inddef.scan(/ USING (\w+?) \((.+?)\)(?: WHERE (.+))?\z/).flatten
+ using, expressions, where = inddef.scan(/ USING (\w+?) \((.+?)\)(?: WHERE (.+))?\z/m).flatten
orders = {}
opclasses = {}