Data migrations in rails - Introduction and patterns
When it comes to database migrations the policy of Rails is apparent. It’s all about altering the database structure with gradual migration files: “Migrations are a convenient way to alter your database schema over time consistently and easily.”
But, what about data migrations? What’s the best way to write, maintain, and run migrations that alter the data in your production database?