summaryrefslogtreecommitdiff
path: root/db/migrate/20220222072536_add_target_access_levels_to_broadcast_messages.rb
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