Ajout de la ref_piece_jointe dans DossierPDF
This commit is contained in:
parent
c02f5c320a
commit
f7dfcfa5a5
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddRefPiecesJointesRefToDossierPdf < ActiveRecord::Migration
|
||||
def change
|
||||
add_reference :dossier_pdfs, :ref_pieces_jointes, index: true
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150806162353) do
|
||||
ActiveRecord::Schema.define(version: 20150810130957) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -29,8 +29,11 @@ ActiveRecord::Schema.define(version: 20150806162353) do
|
|||
create_table "dossier_pdfs", force: :cascade do |t|
|
||||
t.string "ref_dossier_pdf"
|
||||
t.integer "dossier_id"
|
||||
t.integer "ref_pieces_jointes_id"
|
||||
end
|
||||
|
||||
add_index "dossier_pdfs", ["ref_pieces_jointes_id"], name: "index_dossier_pdfs_on_ref_pieces_jointes_id", using: :btree
|
||||
|
||||
create_table "dossiers", force: :cascade do |t|
|
||||
t.string "description"
|
||||
t.boolean "autorisation_donnees"
|
||||
|
|
Loading…
Reference in a new issue