Merge branch 'develop' into staging

This commit is contained in:
Xavier J 2016-06-14 12:32:57 +02:00
commit bf2c51f8d1

View file

@ -41,6 +41,8 @@ class DeleteDefaultDescriptionToDossier < ActiveRecord::Migration
def down
add_column :dossiers, :description, :text
Champ.destroy_all(dossier_id: 0)
TypeDeChamp.where(libelle: 'Description', type_champ: 'textarea', order_place: 0, mandatory: true).each do |type_de_champ|
Champ.where(type_de_champ_id: type_de_champ.id).each do |champ|
dossier = Dossier.find(champ.dossier_id)