Add noindex field to user

This commit is contained in:
Andreas Nedbal 2022-11-16 22:31:49 +01:00
parent 670131e102
commit 2367bb3139
2 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,11 @@
# frozen_string_literal: true
class AddPrivacyNoindexToUser < ActiveRecord::Migration[6.1]
def up
add_column :users, :privacy_noindex, :boolean, default: false
end
def down
remove_column :users, :privacy_noindex
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_11_13_110942) do
ActiveRecord::Schema.define(version: 2022_11_16_201723) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -292,9 +292,9 @@ ActiveRecord::Schema.define(version: 2022_11_13_110942) do
t.datetime "export_created_at"
t.string "otp_secret_key"
t.integer "otp_module", default: 0, null: false
t.datetime "deleted_at"
t.boolean "privacy_require_user", default: false
t.boolean "privacy_lock_inbox", default: false
t.boolean "privacy_require_user", default: false
t.boolean "privacy_noindex", default: false
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true