diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-05-03 05:36:13 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-05-13 01:26:48 +0300 |
commit | f661980904f718440cc700b7d1f38ea8bf0e5480 (patch) | |
tree | 7933eee3b85e6af5da9db8223b6d870d8395926f /db/migrate/20170503023315_add_repository_update_events_to_web_hooks.rb | |
parent | 8b17fb61b61b1f9707428c2333db2de29c4d3bcf (diff) |
Added repository_update hook
Diffstat (limited to 'db/migrate/20170503023315_add_repository_update_events_to_web_hooks.rb')
-rw-r--r-- | db/migrate/20170503023315_add_repository_update_events_to_web_hooks.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20170503023315_add_repository_update_events_to_web_hooks.rb b/db/migrate/20170503023315_add_repository_update_events_to_web_hooks.rb new file mode 100644 index 00000000000..0faea87a962 --- /dev/null +++ b/db/migrate/20170503023315_add_repository_update_events_to_web_hooks.rb @@ -0,0 +1,15 @@ +class AddRepositoryUpdateEventsToWebHooks < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :web_hooks, :repository_update_events, :boolean, default: false, allow_null: false + end + + def down + remove_column :web_hooks, :repository_update_events + end +end |