active_record_doctor
active_record_doctor copied to clipboard
Ignore abstract model classes
$ rake active_record_doctor
Got this warning, among others:
ApplicationRecord references a non-existent table or view named
I think those errors were introduced after we removed a check for model.table_name.nil?. We probably should reintroduce that check.
I think those errors were introduced after we removed a check
Double checked - yes. But I think, this PR should cover that case. Any reason to have a model without table_name, except abstract classes?
@fatkodima, I'm closing this PR as it seems to be no longer relevant after these changes.