Skip to content

Add Run pending migrations button #455

@elalemanyo

Description

@elalemanyo

Rails 6 added ActiveSupport::ActionableError module to define actions we want perform on errors, right from the error page.
PendingMigrationError added by default a button that says Run pending migrations. Clicking on this button would dispatch rails db:migrate action. Page will reload once migrations run successfully.
Would be great to have this button also when we use better_errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions