From 6a471fe8676b0ef997ff981662b5a3afd4a67a18 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 7 Dec 2015 10:54:43 +0100 Subject: [PATCH] - Recreate schema - Desactivation one migration --- ...814122208_link_type_piece_jointe_to_formulaire.rb | 12 ++++++------ db/schema.rb | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/db/migrate/20150814122208_link_type_piece_jointe_to_formulaire.rb b/db/migrate/20150814122208_link_type_piece_jointe_to_formulaire.rb index f05270e2e..74afef525 100644 --- a/db/migrate/20150814122208_link_type_piece_jointe_to_formulaire.rb +++ b/db/migrate/20150814122208_link_type_piece_jointe_to_formulaire.rb @@ -1,8 +1,8 @@ class LinkTypePieceJointeToFormulaire < ActiveRecord::Migration - def up - TypePieceJointe.find_each do |type_piece_jointe| - forms = Formulaire.find_by_demarche_id(type_piece_jointe.CERFA) - type_piece_jointe.update_attributes(formulaire_id: forms.id) unless forms.nil? - end - end + # def up + # TypePieceJointe.find_each do |type_piece_jointe| + # forms = Formulaire.find_by_demarche_id(type_piece_jointe.CERFA) + # type_piece_jointe.update_attributes(formulaire_id: forms.id) unless forms.nil? + # end + # end end diff --git a/db/schema.rb b/db/schema.rb index 3ae1d4d24..87f9493af 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -62,8 +62,8 @@ ActiveRecord::Schema.define(version: 20151127103412) do t.boolean "autorisation_donnees" t.string "nom_projet" t.integer "procedure_id" - t.datetime "created_at", default: '2015-09-22 09:25:29' - t.datetime "updated_at", default: '2015-09-22 09:25:29' + t.datetime "created_at", default: '2015-12-07 09:51:46' + t.datetime "updated_at", default: '2015-12-07 09:51:46' t.string "state" t.integer "user_id" t.text "json_latlngs"