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

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

class AddTargetAccessLevelsToBroadcastMessages < Gitlab::Database::Migration[1.0]
  def up
    add_column :broadcast_messages, :target_access_levels, :integer, if_not_exists: true, array: true, null: false, default: []
  end

  def down
    remove_column :broadcast_messages, :target_access_levels, if_exists: true
  end
end