Switch user status to enum
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
Dan Milne
2025-10-23 20:24:19 +11:00
parent 91573ee2b9
commit 7f075391c1
6 changed files with 146 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
class ChangeUserStatusToInteger < ActiveRecord::Migration[8.1]
def change
change_column :users, :status, :integer
end
end

4
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2025_10_23_054039) do
ActiveRecord::Schema[8.1].define(version: 2025_10_23_091355) do
create_table "application_groups", force: :cascade do |t|
t.integer "application_id", null: false
t.datetime "created_at", null: false
@@ -108,7 +108,7 @@ ActiveRecord::Schema[8.1].define(version: 2025_10_23_054039) do
t.datetime "created_at", null: false
t.string "email_address", null: false
t.string "password_digest", null: false
t.string "status", default: "active", null: false
t.integer "status"
t.boolean "totp_required", default: false, null: false
t.string "totp_secret"
t.datetime "updated_at", null: false