diff options
Diffstat (limited to 'db/migrate/20200103192859_add_fk_for_instance_administrators_group.rb')
-rw-r--r-- | db/migrate/20200103192859_add_fk_for_instance_administrators_group.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/db/migrate/20200103192859_add_fk_for_instance_administrators_group.rb b/db/migrate/20200103192859_add_fk_for_instance_administrators_group.rb deleted file mode 100644 index 0ad37d6bd29..00000000000 --- a/db/migrate/20200103192859_add_fk_for_instance_administrators_group.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -class AddFkForInstanceAdministratorsGroup < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - add_concurrent_foreign_key( - :application_settings, - :namespaces, - column: :instance_administrators_group_id, - on_delete: :nullify - ) - end - - def down - remove_foreign_key :application_settings, column: :instance_administrators_group_id - end -end |