mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
9 lines
261 B
Ruby
9 lines
261 B
Ruby
class MigrateStatusesToDomainHistoryJob < ApplicationJob
|
|
def perform
|
|
domains = Domain.all.select { |d| !d.locked_by_registrant? }
|
|
domains.each do |domain|
|
|
domain.admin_store_statuses_history = domain.statuses
|
|
domain.save
|
|
end
|
|
end
|
|
end
|