diff options
author | Wei-Meng Lee <wlee@gitlab.com> | 2019-02-16 01:00:22 +0800 |
---|---|---|
committer | Wei-Meng Lee <wlee@gitlab.com> | 2019-05-31 20:45:21 +0800 |
commit | 6d73ce696c02bc949b9e3e71b8c14554e43ab340 (patch) | |
tree | 4df994c04194cdad7915fcf63eb655d405ab9325 | |
parent | 4e888212a1cdf5898c5cef69f5a2de909a275d31 (diff) | |
download | gitlab-ce-6d73ce696c02bc949b9e3e71b8c14554e43ab340.tar.gz |
Add notification_email to NotificationSetting
-rw-r--r-- | db/migrate/20190327163904_add_notification_email_to_notification_settings.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20190327163904_add_notification_email_to_notification_settings.rb b/db/migrate/20190327163904_add_notification_email_to_notification_settings.rb new file mode 100644 index 00000000000..2f3069032a1 --- /dev/null +++ b/db/migrate/20190327163904_add_notification_email_to_notification_settings.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class AddNotificationEmailToNotificationSettings < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :notification_settings, :notification_email, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 1fdfb73eb59..39d9743bcc9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1516,6 +1516,7 @@ ActiveRecord::Schema.define(version: 20190527194900) do t.boolean "success_pipeline" t.boolean "push_to_merge_request" t.boolean "issue_due" + t.string "notification_email" t.index ["source_id", "source_type"], name: "index_notification_settings_on_source_id_and_source_type", using: :btree t.index ["user_id", "source_id", "source_type"], name: "index_notifications_on_user_id_and_source_id_and_source_type", unique: true, using: :btree t.index ["user_id"], name: "index_notification_settings_on_user_id", using: :btree |