mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Revert "Merge pull request #1902 from internetee/1900-removing-registry-lock-should-not-remove-statuses-set-prior-to-setting-it"
This reverts commitf6fcf15fff
, reversing changes made to26618a3c90
.
This commit is contained in:
parent
c1dba6c8f6
commit
eac7dd352b
14 changed files with 10 additions and 172 deletions
|
@ -1,13 +0,0 @@
|
|||
class TransferDomainStatusesBeforeForceDeleteToJsonHistory < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
domains = Domain.where.not(statuses_before_force_delete: nil)
|
||||
domains.each do |domain|
|
||||
domain.force_delete_domain_statuses_history = domain.statuses_before_force_delete
|
||||
domain.save
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
# raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
|
@ -1,13 +0,0 @@
|
|||
class TransferDataFromDomainStatusesToAdminStatusHistory < ActiveRecord::Migration[6.0]
|
||||
def up
|
||||
domains = Domain.all.select { |d| !d.locked_by_registrant?}
|
||||
domains.each do |domain|
|
||||
domain.admin_store_statuses_history = domain.statuses
|
||||
domain.save
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
# raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue