Add notification_email to NotificationSetting

This commit is contained in:
Wei-Meng Lee 2019-02-16 01:00:22 +08:00
parent 4e888212a1
commit 6d73ce696c
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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