Migrating to Single Table Inheritance
How Shopify migrated from a regular ActiveRecord model to a Single Table Inheritance (STI) with zero downtime
Steps include:
- Adding a type column
- Renaming the table
- Creating the STI
Guillaume Malette
July 16, 2013