mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +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...'
|
||||
count = 0
|
||||
|
||||
LegalDocument.all.each do |x|
|
||||
LegalDocument.where(documentable_type: Domain).find_each do |x|
|
||||
|
||||
next if x.documentable_id.blank?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue