Support multiple databases by excluding db/*schema.rb
instead of db/schema.rb
#646
Labels
enhancement
New feature or request
db/*schema.rb
instead of db/schema.rb
#646
Expected behavior
For
db/*schema.rb
to be excluded.Actual behavior
Only
db/schema.rb
is excluded.Steps to reproduce the problem
Follow the instructions per the Rails guide to configure multiple databases: https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application
And execute:
rubocop -L | grep '^db/.*schema.rb'
example output:
RuboCop version
A quick fix is changing
db/schema.rb
todb/*schema.rb
in the YAML; but a recursive grep shows multiple files containingdb/schema.rb
in this repository, which may also require updating, but due to time constraints I can't dig deeper right now. I'll try to revisit this issue later, but if someone else wants to pick it up, feel free.Cheers.
The text was updated successfully, but these errors were encountered: