Skip to content

Verify Rails version in migrations #160

@aldesantis

Description

@aldesantis

It would be helpful to have an automated check that ensures migrations all use the earliest Rails version supported by Solidus. For instance, if Solidus supports Rails 5.1+, all migrations in extensions should inherit from ActiveRecord::Migration[5.1].

Otherwise, a migration that inherits from ActiveRecord::Migration[6.0] will not run on any applications that use 5.x.

This could either be a runtime check in the CI or a static RuboCop check.

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