diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-26 15:06:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-26 15:06:18 +0300 |
commit | 6a4ffad42050949fcf08e78147575734ae99627e (patch) | |
tree | 723bb2480948ba4ec29ca9ac10f8728dc2a831b6 /db/migrate/20191023093207_add_comment_actions_to_services.rb | |
parent | 23d237110e6a646dec08e1f5b4696d2d9c51cfef (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20191023093207_add_comment_actions_to_services.rb')
-rw-r--r-- | db/migrate/20191023093207_add_comment_actions_to_services.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20191023093207_add_comment_actions_to_services.rb b/db/migrate/20191023093207_add_comment_actions_to_services.rb new file mode 100644 index 00000000000..f3fc12ac7c7 --- /dev/null +++ b/db/migrate/20191023093207_add_comment_actions_to_services.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddCommentActionsToServices < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default(:services, :comment_on_event_enabled, :boolean, default: true) + end + + def down + remove_column(:services, :comment_on_event_enabled) + end +end |