Default to keeping user's email addresses private.
This commit is contained in:
parent
d61b4253df
commit
ed6b2d8c93
7 changed files with 31 additions and 17 deletions
|
|
@ -0,0 +1,9 @@
|
|||
class UserEmailPublicDefaultsToFalse < ActiveRecord::Migration[5.0]
|
||||
def up
|
||||
change_column_default :users, :email_public, false
|
||||
end
|
||||
|
||||
def down
|
||||
change_column_default :users, :email_public, true
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20180822125509) do
|
||||
ActiveRecord::Schema.define(version: 20180924221715) do
|
||||
|
||||
create_table "ahoy_events", force: :cascade do |t|
|
||||
t.integer "visit_id"
|
||||
|
|
@ -603,7 +603,7 @@ ActiveRecord::Schema.define(version: 20180822125509) do
|
|||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "name"
|
||||
t.boolean "email_public", default: true
|
||||
t.boolean "email_public", default: false
|
||||
t.text "biography"
|
||||
t.string "nickname"
|
||||
t.string "affiliation"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue