gitlab-org--gitlab-foss/db/migrate/20150516060434_add_note_eve...

11 lines
252 B
Ruby

# rubocop:disable all
class AddNoteEventsToWebHooks < ActiveRecord::Migration[4.2]
def up
add_column :web_hooks, :note_events, :boolean, default: false, null: false
end
def down
remove_column :web_hooks, :note_events, :boolean
end
end