Im use ecto migrated my tables, and already insert some data in the table in a few days ago, Now got the new error using Repo.insert
, dont know why. There id key is automatically create and grown up.
** (Ecto.ConstraintError) constraint error when attempting to insert struct:
- unique: info_pkey
If you would like to convert this constraint into an error, please
call unique_constraint/3 in your changeset and define the proper
constraint name. The changeset has not defined any constraint.