From 3ce2f575dcd342b13f5bd9b245aeab761215ba54 Mon Sep 17 00:00:00 2001 From: Steven Clontz Date: Wed, 4 Sep 2024 22:09:44 -0500 Subject: [PATCH] Prompt to change belongs_to type for e.g. UUIDs --- db/migrate/20171104221735_create_passwordless_sessions.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20171104221735_create_passwordless_sessions.rb b/db/migrate/20171104221735_create_passwordless_sessions.rb index 32734fb..65db410 100644 --- a/db/migrate/20171104221735_create_passwordless_sessions.rb +++ b/db/migrate/20171104221735_create_passwordless_sessions.rb @@ -6,6 +6,7 @@ def change t.belongs_to( :authenticatable, polymorphic: true, + type: :int, # change to e.g. :uuid if your model doesn't use integer IDs index: {name: "authenticatable"} )