Class: Gitlab::Database::PostgresForeignKey

Inherits:
SharedModel
  • Object
show all
Defined in:
lib/gitlab/database/postgres_foreign_key.rb

Constant Summary collapse

ACTION_TYPES =

These values come from the possible confdeltype / confupdtype values in pg_constraint

{
  restrict: 'r',
  cascade: 'c',
  nullify: 'n',
  set_default: 'd',
  no_action: 'a'
}.freeze

Method Summary

Methods inherited from SharedModel

connection, #connection_db_config, connection_pool, using_connection