summaryrefslogtreecommitdiff
path: root/db/migrate/20210420012444_change_web_hook_events_default.rb
blob: b5a63a5a2a8476c056ecddaa39914eea43eeef9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ChangeWebHookEventsDefault < ActiveRecord::Migration[6.0]
  def up
    change_column_default :web_hooks, :push_events, true
    change_column_default :web_hooks, :issues_events, false
    change_column_default :web_hooks, :merge_requests_events, false
    change_column_default :web_hooks, :tag_push_events, false
  end

  # This is a NOP because this migration is supposed to restore the
  # intended schema, not revert it.
  def down
  end
end