Skip to content

Documentation for "Working around good_migrations" is incomplete/inaccurate. #38

@armchairdj

Description

@armchairdj

Per the README:

The gem only prevents auto-loading, so you can always can explicitly require the app code that you need in your migration.

But when attempting to require application code in a complex data migration, I was still blocked by the gem from running it. It was as if the require statements were not there.

Does this actually work? And if so, is there more precise documentation that could point users toward how to do it?

I ended up inlining > 100 lines of duplicated application code because I couldn't require a well-tested backfill service due to this issue.

Thanks for any help!

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