diff options
author | Sean McGivern <sean@gitlab.com> | 2018-03-30 13:25:46 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-03-30 13:25:46 +0100 |
commit | 5ab75649f3ea00b64cb63e7e5283100c6b70cfb5 (patch) | |
tree | c301d3390f5f665640d8f8e931662b28c4242a30 /db | |
parent | 6412c4c54a7a824e108899a34b1ecec5cbdcec4b (diff) | |
download | gitlab-ce-5ab75649f3ea00b64cb63e7e5283100c6b70cfb5.tar.gz |
Only send issue due emails to participants and custom subscribers
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180330121048_add_issue_due_to_notification_settings.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20180330121048_add_issue_due_to_notification_settings.rb b/db/migrate/20180330121048_add_issue_due_to_notification_settings.rb new file mode 100644 index 00000000000..c64a481fcf0 --- /dev/null +++ b/db/migrate/20180330121048_add_issue_due_to_notification_settings.rb @@ -0,0 +1,9 @@ +class AddIssueDueToNotificationSettings < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :notification_settings, :issue_due, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 9aaefcf1c8d..a96242e6587 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180327101207) do +ActiveRecord::Schema.define(version: 20180330121048) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1311,6 +1311,7 @@ ActiveRecord::Schema.define(version: 20180327101207) do t.boolean "failed_pipeline" t.boolean "success_pipeline" t.boolean "push_to_merge_request" + t.boolean "issue_due" end add_index "notification_settings", ["source_id", "source_type"], name: "index_notification_settings_on_source_id_and_source_type", using: :btree |