Can both normal id and binary_id used as primary keys in same Phoenix project?

Yes, that’s possible.

The option you mentioned just influences the generator and you can alter migrations and schema after generating them. But you really need to remember to do that before running the migration. Might be hard to change afterwards.

3 Likes