diff --git a/db/migrate/20221113110942_add_privacy_require_user_to_users.rb b/db/migrate/20221113110942_add_privacy_require_user_to_users.rb new file mode 100644 index 00000000..3ccb7b74 --- /dev/null +++ b/db/migrate/20221113110942_add_privacy_require_user_to_users.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 3f035379..79ded6fa 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -301,6 +301,7 @@ ActiveRecord::Schema.define(version: 2022_08_20_163035) do 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.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["deleted_at"], name: "index_users_on_deleted_at" t.index ["email"], name: "index_users_on_email", unique: true