class RuboCop::Cop::Rails::MigrationClassName

def remove_gem_suffix(file_name)

e.g.: from `add_blobs.active_storage` to `add_blobs`.
def remove_gem_suffix(file_name)
  file_name.sub(/\..+\z/, '')
end