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

20231018105749_remove_application_settings_marketing_emails_enabled_column.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ea7ef21f1105eb16b2382cff5627fd00b5fc2b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class RemoveApplicationSettingsMarketingEmailsEnabledColumn < Gitlab::Database::Migration[2.1]
  def up
    remove_column :application_settings, :in_product_marketing_emails_enabled
  end

  def down
    add_column :application_settings, :in_product_marketing_emails_enabled, :boolean, default: true, null: false
  end
end