debian-mirror-gitlab/db/migrate/20150516060434_add_note_events_to_web_hooks.rb

11 lines
247 B
Ruby
Raw Normal View History

# rubocop:disable all
2019-01-03 12:48:30 +05:30
class AddNoteEventsToWebHooks < ActiveRecord::Migration
2015-09-11 14:41:01 +05:30
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