diff options
author | Senorsen <sen@senorsen.com> | 2015-04-14 00:28:49 +0800 |
---|---|---|
committer | Senorsen <sen@senorsen.com> | 2015-04-14 19:42:48 +0800 |
commit | 7b28218f96d14c9650484a183ffab3b2132b05db (patch) | |
tree | a79cbd394f52a00ba69b1d9b9f192d7ce0b35082 /db/migrate | |
parent | ae6d0aaae0d8f6251b30a8e5243a98f083f0cac9 (diff) | |
download | gitlab-ce-7b28218f96d14c9650484a183ffab3b2132b05db.tar.gz |
Allow user to choose which email to be public
This commit allows user to show one of their emails in profile page,
or don't show email in this page.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20150413192223_add_public_email_to_users.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20150413192223_add_public_email_to_users.rb b/db/migrate/20150413192223_add_public_email_to_users.rb new file mode 100644 index 00000000000..700e9f343a6 --- /dev/null +++ b/db/migrate/20150413192223_add_public_email_to_users.rb @@ -0,0 +1,5 @@ +class AddPublicEmailToUsers < ActiveRecord::Migration + def change + add_column :users, :public_email, :string, default: "", null: false + end +end |