diff options
author | fatkodima <fatkodima123@gmail.com> | 2018-03-16 07:19:40 +0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2018-03-16 01:19:40 -0400 |
commit | 471bec310d1ecc50311f18b545df1d789d6bac0d (patch) | |
tree | 44d83b4a877fa20211e3376f3cf92c79fc3e6b0e /activerecord/test/cases | |
parent | 81843bcf65f1f5fce0bab1d1437e2815eb20e904 (diff) | |
download | rails-471bec310d1ecc50311f18b545df1d789d6bac0d.tar.gz rails-471bec310d1ecc50311f18b545df1d789d6bac0d.tar.bz2 rails-471bec310d1ecc50311f18b545df1d789d6bac0d.zip |
Fix multiline expression indexes for postgresql (#31621)
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index a612ce9bb2..50d766a99e 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -298,7 +298,7 @@ class SchemaDumperTest < ActiveRecord::TestCase def test_schema_dump_expression_indices index_definition = dump_table_schema("companies").split(/\n/).grep(/t\.index.*company_expression_index/).first.strip - assert_equal 't.index "lower((name)::text)", name: "company_expression_index"', index_definition + assert_match %r{CASE.+lower\(\(name\)::text\)}i, index_definition end def test_schema_dump_interval_type |