Build Ruby on Rails App Build Failed


How could i fix these errors? Running the command it says didn’t change anything so there was nothing to commit to the repo.

Hi there,

It looks like your build is trying to connect to your database, and you have pushed new migration with your deploy. Rails/ActiveRecord will pick these new migrations up, which is why you see message about pending migrations.

If you tried to run db:migrate from your services shell, it will not see these migrations because your shell will be for your last successful deployment, which does not have the migrations you just pushed.

In general, you don’t want to have a dependency on your database during your build, so Rails/ActiveRecord will not connect to it, avoiding this issue.

Regards,
Keith

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.