Programming Phoenix LiveView B10: wrong name of the migration attribute mentioned: user instead of user_id (page 170)

On page 170 there is the following statement:

…add a unique index on the user and product_id fields…

As the generated field is named user_id, I suppose it should be:

…add a unique index on the user_id and product_id fields…

You are right! This will be fixed in the next release.

1 Like