If I’ve got a column in a database, I want to write a migration that generates another column that contains the md5 hash of the first column. The encryption I can do, but roughly what should the migration look like, structurally? Do I just do a for-each?
Share
I would do it like this with a sql query because this is about the whole table and iteration would slow it down useless.