Here is the problem: I have Ruby on Rails project that has a table that have almost 100k rows and I have a binary column and I want to make changes in the content data on this column.
So I must iterate over those 100k rows, making changes on that row on particular column, saving it back on database.
But I must keep track of changes because these changes could fail and I should have someway to re-start data change from where I stopped.
Here is what I thought of a way of doing it:
Is there any other "Railsh way" to do that? Anyone have done such change?
Thanks
I would do it like this:
After this step, you can manually verify if all records in the database have both columns set as expected.