diff options
Diffstat (limited to 'lib/gitlab/database/postgres_partitioned_table.rb')
-rw-r--r-- | lib/gitlab/database/postgres_partitioned_table.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/postgres_partitioned_table.rb b/lib/gitlab/database/postgres_partitioned_table.rb index fead7379e43..76e2cd48f80 100644 --- a/lib/gitlab/database/postgres_partitioned_table.rb +++ b/lib/gitlab/database/postgres_partitioned_table.rb @@ -10,7 +10,7 @@ module Gitlab has_many :postgres_partitions, foreign_key: 'parent_identifier', primary_key: 'identifier' scope :by_identifier, ->(identifier) do - unless identifier =~ Gitlab::Database::FULLY_QUALIFIED_IDENTIFIER + unless Gitlab::Database::FULLY_QUALIFIED_IDENTIFIER.match?(identifier) raise ArgumentError, "Table name is not fully qualified with a schema: #{identifier}" end |