Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210308175224_change_namespace_settings_delayed_project_removal_null.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b731b78117f972a79f88788966e80dff31f628d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class ChangeNamespaceSettingsDelayedProjectRemovalNull < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def up
    change_column :namespace_settings, :delayed_project_removal, :boolean, null: true, default: nil
  end

  def down
    change_column_default :namespace_settings, :delayed_project_removal, false
    change_column_null :namespace_settings, :delayed_project_removal, false, false
  end
end