-
Notifications
You must be signed in to change notification settings - Fork 178
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
[Idea] Ignore migrations from non-supported adapters #255
Comments
Hi @jenskdsgn, thanks for the suggestion! Added a warning for unsupported adapters and an option to ignore databases in the ignore branch, but want to figure out a better name (or pattern) before merging. |
Wow. Thanks for the prompt reply. I'll test this and let you know if it works! |
Ok, I had the time to check it. Unfortunately when ignoring the database, the checks are ignored, which is good, however the migration didn't execute either. I think the offending line is here: I believe it should be: return yield if !enabled? if I understand it correct, the checker class executes the migration in the block after the check. If you guard the perform with enabled it won't execute the block, which is not the expected behavior. I want to disable the strong migration check and not the whole migration. |
Hello @ankane 👋 Would it be possible to merge the changes from the I need this functionality because we are also using ClickHouse. As the Is there any specific reason for not adding this to |
Added a |
Hey,
first of all thanks for this helpful gem! In my current situation I am trying to add a second database as part of Rails' multi database configuration. The primary db will be postgres and secondary clickhouse, both databases will be owned by the rails app including migrations. The current behaviour from looking at strong_migration's code, it would pick the AbstractAdapter and would raise an error on setting the timeout here.
So the two options I am seeing here is
Since the support of multiple databases on Rails, it would be nice to have an option to pick on which databases to apply this gem.
The text was updated successfully, but these errors were encountered: