mirror of
https://github.com/internetee/registry.git
synced 2025-06-04 11:47:30 +02:00
14 lines
318 B
Ruby
14 lines
318 B
Ruby
class RefactorDomainStatuses < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
# Domain.find_each do |x|
|
|
# statuses = []
|
|
# x.domain_statuses.each do |ds|
|
|
# statuses << ds.value
|
|
# end
|
|
# x.update_column('statuses', statuses) if x.statuses.blank?
|
|
# end
|
|
end
|
|
|
|
def self.down
|
|
end
|
|
end
|