Class: Gitlab::Database::AsyncConstraints::PostgresAsyncConstraintValidation
Constant Summary
collapse
- MAX_IDENTIFIER_LENGTH =
Gitlab::Database::MigrationHelpers::MAX_IDENTIFIER_NAME_LENGTH
- MAX_LAST_ERROR_LENGTH =
10_000
Class Method Summary
collapse
#handle_exception!
Methods inherited from SharedModel
connection, #connection_db_config, connection_pool, using_connection
Class Method Details
.constraint_type_exists? ⇒ Boolean
28
29
30
|
# File 'lib/gitlab/database/async_constraints/postgres_async_constraint_validation.rb', line 28
def constraint_type_exists?
connection.column_exists?(table_name, :constraint_type)
end
|
.table_available? ⇒ Boolean
24
25
26
|
# File 'lib/gitlab/database/async_constraints/postgres_async_constraint_validation.rb', line 24
def table_available?
connection.table_exists?(table_name)
end
|