Skip to content

Commit

Permalink
Add explicit key type to migration (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz authored Sep 5, 2024
1 parent b628a3c commit 4d60166
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/migrate/20171104221735_create_passwordless_sessions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
)

Expand Down

0 comments on commit 4d60166

Please sign in to comment.