debian-mirror-gitlab/db/migrate/20210420012444_change_web_hook_events_default.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
483 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# 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