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

Add annotation hooks for db-specific migration tasks #686

Merged
merged 1 commit into from
May 17, 2020

Conversation

paul-mannino
Copy link
Contributor

@paul-mannino paul-mannino commented Nov 10, 2019

Rails 6 adds a new set of migration tasks for multi-database apps. This change makes the annotate_models_migrate hooks aware of them.

This change was a little awkward to test, but I'm happy to change my approach/use a dummy app for more robust integration tests if desired.

@drwl
Copy link
Collaborator

drwl commented May 8, 2020

Hi @paul-mannino thanks for this and I apologize for not reviewing this earlier. Since this PR was up I've added an integration test in spec/integration, does that allow you to test this change?

Rails 6 adds a new set of migration tasks for multi-database
apps. This change makes the annotate_models_migrate hooks
aware of them.
@paul-mannino
Copy link
Contributor Author

paul-mannino commented May 16, 2020

Hi @paul-mannino thanks for this and I apologize for not reviewing this earlier. Since this PR was up I've added an integration test in spec/integration, does that allow you to test this change?

@drwl That makes it a bit nicer to test. Lmk if there's anything you want me to change after the latest refactor

Copy link
Collaborator

@drwl drwl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for adding to the integration tests!

@@ -19,91 +82,31 @@
end
end

around(:each) do |example|
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat 👍

@drwl drwl merged commit 1956971 into ctran:develop May 17, 2020
ocarta-l pushed a commit to ocarta-l/annotate_models that referenced this pull request Jun 18, 2021
Rails 6 adds a new set of migration tasks for multi-database
apps. This change makes the annotate_models_migrate hooks
aware of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants