some old champ live in a parallel space time continuum without valid dossier or type_de_champ
This commit is contained in:
parent
fc3ed41832
commit
3fc8476947
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
namespace :'2018_02_13_fill_champ_private_and_type' do
|
||||
task set: :environment do
|
||||
Champ.includes(:type_de_champ).find_each do |champ|
|
||||
champ.update_columns(champ.type_de_champ.params_for_champ)
|
||||
if champ.type_de_champ.present?
|
||||
champ.update_columns(champ.type_de_champ.params_for_champ)
|
||||
end
|
||||
end
|
||||
|
||||
TypeDeChamp.find_each do |type_de_champ|
|
||||
|
|
Loading…
Reference in a new issue