-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db_migrate not migrating #292
Comments
Your schema.db did not change between two deploys. That is how mina determines if it nees to run migrate or not. rails:db_migrate is a task meant to be run inside deploy do as invoke :'rails:db_migrate' you need to do this:
or change your schema.db |
Thanks for the quick reply! That definitely worked and make my migration run. Any chance you help me so they'll run automatically? I thought that the migrations ran when the contents of db/migrate changed between deploys. See: https://github.com/mina-deploy/mina/blob/master/lib/mina/rails.rb#L143-L145 |
You need to add that inside your deploy script add something like this to your deploy.rb script:
|
I have that. It is working for me in another project I have but not this one. I'll figure it out eventually.
|
I've added a migration but it doesn't run when I deploy. I try:
I tried:
I tried:
I'd love any ideas on what I can do to make this work? Thanks in advance! Mina is so good.
The text was updated successfully, but these errors were encountered: