diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-11-15 00:30:01 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-11-18 20:17:51 +0300 |
commit | d399e1ae2b92bc399962a286fddc59eaa09670a7 (patch) | |
tree | ea30c59e125b8086cbe5939ef58f03ba3051f872 /db/migrate/20161118183841_add_commit_events_to_services.rb | |
parent | 88479f7f3071c2d79447896deeea63fb78b175df (diff) |
Allow enabling and disabling commit and MR events for JIRA
Diffstat (limited to 'db/migrate/20161118183841_add_commit_events_to_services.rb')
-rw-r--r-- | db/migrate/20161118183841_add_commit_events_to_services.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20161118183841_add_commit_events_to_services.rb b/db/migrate/20161118183841_add_commit_events_to_services.rb new file mode 100644 index 00000000000..4f9b5dd2281 --- /dev/null +++ b/db/migrate/20161118183841_add_commit_events_to_services.rb @@ -0,0 +1,15 @@ +class AddCommitEventsToServices < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default(:services, :commit_events, :boolean, default: true, allow_null: false) + end + + def down + remove_column(:services, :commit_events) + end +end |