Skip to content

Add support for squashing migrations in rake-db (or official guide) #659

@IlyaSemenov

Description

@IlyaSemenov

It would be useful to have a built-in mechanism for squashing / compressing old migrations in rake-db, or at least an official guide describing a safe way to do it.

When the number of migration files grows large (e.g. 100+), it affects boot time, test suite speed, CI performance, and overall project maintainability.

See how others do it:

The AIs could probably do the hard work on merging operations, but the library at least needs to account for how to handle new gaps or the new non-0001 start or whatever approach is to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnice to haveLow priority, comment if you'd like to have it sooner, otherwise it'll lay in the backlog forever

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions