debian-mirror-gitlab/db/migrate/20150516060434_add_note_events_to_web_hooks.rb
2019-02-15 15:39:39 +05:30

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