Skip to content

Forces a DB connection to be established when running assets:precompile #222

@defsprite

Description

@defsprite

It looks like merely adding data_migrate to the Gemfile will force a database connection to be established during assets:clobber or assets:precompile tasks.

This is highly undesirable for Docker builds, as we have no database available unless we resort to nulldb or temporary sqlite connections during container builds.

This happens with data_migrate 8.1.1 and rails 7.0.3.1, but there might be other versions affected.

There is a small rails app at https://github.com/foxondo/data-migrate-bug to showcase the problem. Please find further details in the README there.

We've opened #221 as a proposed fix for the issue, but there might be other ways to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions