diff options
Diffstat (limited to 'db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb')
-rw-r--r-- | db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb b/db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb deleted file mode 100644 index 93cef322f02..00000000000 --- a/db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -class DropOperationsFeatureFlagsClientsToken < ActiveRecord::Migration[5.2] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - # Ignored in 12.5 - https://gitlab.com/gitlab-org/gitlab/merge_requests/18923 - remove_column :operations_feature_flags_clients, :token - end - - def down - unless column_exists?(:operations_feature_flags_clients, :token) - add_column :operations_feature_flags_clients, :token, :string - end - - add_concurrent_index :operations_feature_flags_clients, [:project_id, :token], unique: true, - name: 'index_operations_feature_flags_clients_on_project_id_and_token' - end -end |