Phil Pirozhkov
Phil Pirozhkov
@anthony-robin Ping
Some use `structure.sql`. Also, `schema.rb` is not necessarily committed, even if exists on developer machines it might not be present on CI unless you run migrations before `rubocop` which would...
Can you please force-push to trigger CI, @kkitadate ?
Was that only `Rails/ActiveRecordCallbacksOrder`? How do you feel about sending a PR with a failing spec to reproduce the issue? We can take it from there.
@jerridan Interesting case! > way of setting custom rules within a spec Do you mean something like that? https://github.com/rubocop/rubocop-rails/blob/3ecda946a111aa43db38f0478fc95606511d7301/spec/rubocop/cop/rails/uniq_before_pluck_spec.rb#L91
> is this cop even needed anymore? Rails now validates that the option sent to class_name is a string In what version Rails has introduced this check? We support [Rails...
It seems to be supported since [Rails 4.0.0](https://api.rubyonrails.org/v4.0.0/classes/ActiveRecord/QueryMethods.html#method-i-where-label-hash).
It feels that the [default `autosave` behaviour](https://guides.rubyonrails.org/association_basics.html#options-for-belongs-to-autosave) is broken in your example for some reason. > If the :autosave option is not present, then new associated objects will be saved...
> parent object has some wrong validation You mean that it behaves differently (unexpectedly) when the associated `User` model instance validation fails? I'll dare saying that this is a Rails...