Maintenance::AddMissingBrandsTask

Source code
# frozen_string_literal: true

class Maintenance::AddMissingBrandsTask < MaintenanceTasks::Task
  include DatadogTrace

  BRANDS = [
    '3mundi',
    'BPI FIVES'
  ].freeze

  def collection
    BRANDS
  end

  def process(name)
    Brand.find_or_create_by_name!(name)
  end
end