diff --git a/db/migrate/20210914071847_add_doc_hist_to_price_documents.rb b/db/migrate/20210914071847_add_doc_hist_to_price_documents.rb new file mode 100644 index 0000000..eebac6b --- /dev/null +++ b/db/migrate/20210914071847_add_doc_hist_to_price_documents.rb @@ -0,0 +1,9 @@ +class AddDocHistToPriceDocuments < ActiveRecord::Migration[6.0] + def change + add_column :price_documents, :bon_de_commande_achat_id, :integer + add_column :price_documents, :bon_de_reception_achat_id, :integer + add_column :price_documents, :demande_de_prix_id, :integer + add_column :price_documents, :avoir_achat_id, :integer + add_column :price_documents, :facture_achat_id, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 934a8fe..077818c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_09_07_161735) do +ActiveRecord::Schema.define(version: 2021_09_14_071847) do create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| t.string "name" @@ -2251,6 +2251,11 @@ ActiveRecord::Schema.define(version: 2021_09_07_161735) do t.string "f_token" t.text "acheteur_text" t.string "public_fournisseur_name" + t.integer "bon_de_commande_achat_id" + t.integer "bon_de_reception_achat_id" + t.integer "demande_de_prix_id" + t.integer "avoir_achat_id" + t.integer "facture_achat_id" t.index ["p_customer_id"], name: "index_price_documents_on_p_customer_id" end