class MigrateBsfLocationsToAreas < Mongoid::Migration
  def self.up
    BusinessSupportLocationMigrator.run
  end

  def self.down
    BusinessSupportEdition.excludes(state: 'archived').each do |bs|
      bs.update_attribute(:areas, [])
    end
  end
end

Migrate locations to Mapit areas.
Migrate locations to Mapit areas.

Finds the regional Mapit area identifiers for business support locations
and populates the areas array with them.
