mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 13:06:18 +02:00
111864739-memory_optimization
This commit is contained in:
parent
07d6805aa6
commit
556868da6f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ namespace :documents do
|
||||||
puts '-----> Adding documets id for PaperTrail log...'
|
puts '-----> Adding documets id for PaperTrail log...'
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
LegalDocument.all.each do |x|
|
LegalDocument.where(documentable_type: Domain).find_each do |x|
|
||||||
|
|
||||||
next if x.documentable_id.blank?
|
next if x.documentable_id.blank?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue