Maintaining database column order with migrations

If you’re anything like me, you like to keep database columns in a reasonably logical order. In my case I generally keep primary keys as the first column, then content columns, then special usage columns, then foreign keys e.g. id name description created_on updated_on account_id Now, say I added a ‘slug’ column with a migration: […]