Add user requirement setting to user

This commit is contained in:
Andreas Nedbal 2022-11-13 14:25:03 +01:00
parent e8437a5226
commit cdc7e2b9cc
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class AddPrivacyRequireUserToUsers < ActiveRecord::Migration[6.1]
def up
add_column :users, :privacy_require_user, :boolean, default: false
end
def down
remove_column :users, :privacy_require_user
end
end

View File

@ -301,6 +301,7 @@ ActiveRecord::Schema.define(version: 2022_08_20_163035) do
t.string "otp_secret_key" t.string "otp_secret_key"
t.integer "otp_module", default: 0, null: false t.integer "otp_module", default: 0, null: false
t.datetime "deleted_at" t.datetime "deleted_at"
t.boolean "privacy_require_user", default: false
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["deleted_at"], name: "index_users_on_deleted_at" t.index ["deleted_at"], name: "index_users_on_deleted_at"
t.index ["email"], name: "index_users_on_email", unique: true t.index ["email"], name: "index_users_on_email", unique: true