I have an atypical need where several records are imported per lot, these records do not have unique identifiers, each record has information about a debt.
I'm planning to create a md5 of each record so there is no duplicity. Of course I would remove the date fields as created_at
and updated_at
.
I thought about using Digest::MD5.hexdigest
where I would create a md5
column and before saving would check if there is an identical record.
I wonder if anyone here has ever had a similar challenge and possible solutions to this challenge. Thank you.