Fix static-analysis failures

What does this MR do?

Fixes a couple of static-analysis failures caused by the introduction of the Rails/ApplicationRecord cop

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Closes #10833 (closed)

Edited by Nick Thomas

Merge request reports

Loading