Post

What's your preference when it comes to data migrations in a Rails app? I've used the data_migrate gem in the past with mixed success - I think it stopped working for me after an upgrade (gem or Rails) Let's discuss the pros and cons. #RubyOnRails github.com/ilyakatz/dat...

github.comgithub.com

0 reposts0 likes

Example: You add a new column to your database and you want to fill it with some computed value. You calculate a score for each post based on interactions. You have a service `PostScorer.score_post(post)` that returns a number that you want to store in your new `posts.score` column.