How column sorting works
mainBy default, columns are sorted in database order (the order in which migrations were executed). You can change this behavior using the following methods:
- Alphabetical Sort: Use the
--sortflag to sort columns alphabetically. - Classified Sort: Use the
--classified-sortflag to sort columns by a specific hierarchy:id$\rightarrow$ other columns $\rightarrow$ timestamp columns $\rightarrow$ association columns. You can also use--grouped-polymorphicin conjunction with this to group polymorphic associations.