Open alec-c4 opened 3 years ago
It's a bit late, but I was able to reproduce this. Can you change the generated migration file to
- t.references :readable, polymorphic: { null: false }
+ t.references :readable, polymorphic: { null: false }, type: :uuid
- t.references :reader, polymorphic: { null: false }
+ t.references :reader, polymorphic: { null: false }, type: :uuid
and verify if it is working now?
Hey! I have the following models
for both User and Conversation, I use UUID-indexes, but for
I see error
ActiveRecord::StatementInvalid: PG::InvalidTextRepresentation: ERROR: invalid input syntax for type uuid: "80"
What's wrong with code?