Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/database/postgres_constraint.rb')
-rw-r--r--lib/gitlab/database/postgres_constraint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/postgres_constraint.rb b/lib/gitlab/database/postgres_constraint.rb
index fa3870cb9c7..9c49251664b 100644
--- a/lib/gitlab/database/postgres_constraint.rb
+++ b/lib/gitlab/database/postgres_constraint.rb
@@ -17,7 +17,7 @@ module Gitlab
scope :valid, -> { where(constraint_valid: true) }
scope :by_table_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