Files
gitlabhq/lib/gitlab/database/async_constraints/validators/check_constraint.rb
2023-03-08 09:12:26 +00:00

20 lines
440 B
Ruby

# frozen_string_literal: true
module Gitlab
module Database
module AsyncConstraints
module Validators
class CheckConstraint < Base
private
override :constraint_exists?
def constraint_exists?
Gitlab::Database::Migrations::ConstraintsHelpers
.check_constraint_exists?(table_name, name, connection: connection)
end
end
end
end
end
end