Skip to content

Check for pending migrations doesn't work when rake is in an indirect dependency #2186

Open
@alex-tan

Description

We just noticed that the functionality added in #1418 isn't working in our Rails app (which uses Rake).

The culprit appears to be this line

When running debugger:

(ruby) defined?(::Rake)
nil

However when rake is added to our Gemfile the check works.

Perhaps it would be better to execute the code without Rake?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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