Ruby

Ruby

Made by DeepSource

Column in ignored_columns does not exist RB-W1020

Anti-pattern
Minor

ignored_columns is necessary to drop a column from the database, but is no longer needed after the column is dropped from the table.

Bad practice

class User < ApplicationRecord
  self.ignored_columns = [:already_removed_column]
end

Recommended

class User < ApplicationRecord
  self.ignored_columns = [:still_existing_column]
end