We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I have an alert about
convention: Rails/HasManyOrHasOneDependent: Specify a :dependent option.
But this warning is not applicable if the target table is readonly(for example view or materialized view).
has_many :books, source: :store, dependent: ????
There's a solution?
rubocop -V 1.4.2 (using Parser 2.7.2.0, rubocop-ast 1.2.0, running on ruby 2.7.2 x64-mingw32) - rubocop-rails 2.8.1
The text was updated successfully, but these errors were encountered:
You can specify dependent: nil is specified if do nothing and RuboCop Rails 2.10 will ignore it. https://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_one
dependent: nil
Related issue: #147
Sorry, something went wrong.
No branches or pull requests
Hi,
I have an alert about
But this warning is not applicable if the target table is readonly(for example view or materialized view).
There's a solution?
RuboCop version
The text was updated successfully, but these errors were encountered: