mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
parent
ed27152bb1
commit
4ddbb08e80
19 changed files with 111 additions and 271 deletions
19
db/data/20200225085234_convert_domain_delete_date.rb
Normal file
19
db/data/20200225085234_convert_domain_delete_date.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
class ConvertDomainDeleteDate < ActiveRecord::Migration[5.1]
|
||||
def up
|
||||
# processed_domain_count = 0
|
||||
#
|
||||
# Domain.transaction do
|
||||
# Domain.find_each do |domain|
|
||||
# next unless domain.delete_date
|
||||
#
|
||||
# domain.update_columns(delete_date: domain.delete_date + 1.day)
|
||||
# processed_domain_count += 1
|
||||
# end
|
||||
# end
|
||||
#
|
||||
# puts "Domains processed: #{processed_domain_count}"
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue