Skip to content
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

ActiveRecord::PendingMigrationError #504

Open
jblauer opened this issue Sep 20, 2018 · 1 comment
Open

ActiveRecord::PendingMigrationError #504

jblauer opened this issue Sep 20, 2018 · 1 comment

Comments

@jblauer
Copy link

jblauer commented Sep 20, 2018

Just intalled gem, created a shard, configured shard.yml, successfully ran a migration against the shard using using(:shard_1) at the top of the migration, but now when sending a request to the application I receive an ActiveRecord::PendingMigrationError.

Am I missing something?

Is there something that needs to be done to tell the master that a migration version has run?

@pkaruovic
Copy link

+1

It appears that when running migration only on shard which is not the main shard octopus doesn’t insert the migration number to the main shard’s schema migrations table. This causes the pending migrations problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants