Commit 4885e789 authored by Michael Kozono's avatar Michael Kozono

Add “opted in to emails” user fields

parent 389dce86
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddEmailOptedInFieldsToUsers < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
add_column :users, :email_opted_in, :boolean, null: true
add_column :users, :email_opted_in_ip, :string, null: true
add_column :users, :email_opted_in_source, :string, null: true
add_column :users, :email_opted_in_at, :datetime_with_timezone, null: true
end
end
...@@ -1904,6 +1904,10 @@ ActiveRecord::Schema.define(version: 20170808163512) do ...@@ -1904,6 +1904,10 @@ ActiveRecord::Schema.define(version: 20170808163512) do
t.string "rss_token" t.string "rss_token"
t.boolean "external_email", default: false, null: false t.boolean "external_email", default: false, null: false
t.string "email_provider" t.string "email_provider"
t.boolean "email_opted_in"
t.string "email_opted_in_ip"
t.string "email_opted_in_source"
t.datetime_with_timezone "email_opted_in_at"
end end
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree add_index "users", ["admin"], name: "index_users_on_admin", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment