I am creating a new column in a table which is a uuid/guid.
add_column :users, :uuid, :string, null: false
I am setting the uuid using:
SecureRandom.uuid
The migration fails because the existing data doesn't have any value.
How can I set the value for each user with a new uuid during this migration?