add database cleaner
add factory girl fix tests rename dossier_pdf into piece_jointe rename ref_piece_jointe into content
This commit is contained in:
parent
c16d7a12f2
commit
3c57643f76
48 changed files with 338 additions and 174 deletions
|
@ -0,0 +1,6 @@
|
|||
class FixRefFormulaireToDossier < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :dossiers, :ref_formulaire, :integer
|
||||
add_reference :dossiers, :ref_formulaire, index: true
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameRefDossierPdfIntoContent < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :dossier_pdfs, :ref_dossier_pdf, :content
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameDossierPdfintofPieceJointe < ActiveRecord::Migration
|
||||
def change
|
||||
rename_table :dossier_pdfs, :pieces_jointes
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue