Skip to content

rake db:migrate fails to run on first deploy #191

@nathanvda

Description

@nathanvda

Hi, I am trying to do my first deploy with mina, and it fails to run the migrations.

This is normal: my migrations do not run from the start, because somewhere during development I added the schema_plus gem, which makes my migrations more stringent.

Normally this is not a problem: I would just do rake db:setup and I would be fine and dandy. However: after a failed install, everything is deleted, so I cannot do a manual rake db:setup.

Does anybody have some tips how to get out of this?

So, either

  • a way to run rake db:setup on first deploy
  • or a way that the files are not deleted after a failed install, so I can still manually run rake db:setup

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