Add instructions to set password for OAuth users (#346)

This commit is contained in:
Riccardo Graziosi
2024-05-14 17:47:17 +02:00
committed by GitHub
parent 57ed8c338d
commit 5a162c6f4f
13 changed files with 116 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
class AddHasSetPasswordToUsers < ActiveRecord::Migration[6.1]
def change
add_column :users, :has_set_password, :boolean, default: true, null: false
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: 2024_04_27_140300) do
ActiveRecord::Schema.define(version: 2024_05_14_112836) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -198,6 +198,7 @@ ActiveRecord::Schema.define(version: 2024_04_27_140300) do
t.integer "status"
t.bigint "tenant_id", null: false
t.string "oauth_token"
t.boolean "has_set_password", default: true, null: false
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email", "tenant_id"], name: "index_users_on_email_and_tenant_id", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true