From 2367bb31399eab8b77fa4844ac22e3a6e324f9fb Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 16 Nov 2022 22:31:49 +0100 Subject: [PATCH] Add noindex field to user --- .../20221116201723_add_privacy_noindex_to_user.rb | 11 +++++++++++ db/schema.rb | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20221116201723_add_privacy_noindex_to_user.rb diff --git a/db/migrate/20221116201723_add_privacy_noindex_to_user.rb b/db/migrate/20221116201723_add_privacy_noindex_to_user.rb new file mode 100644 index 00000000..b04ada0d --- /dev/null +++ b/db/migrate/20221116201723_add_privacy_noindex_to_user.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index ebffd650..26f5d138 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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