mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-13 14:44:59 +00:00
20 lines
440 B
Ruby
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
|