- Recreate schema
- Desactivation one migration
This commit is contained in:
parent
92d57db91d
commit
6a471fe867
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue