add price_doc history

This commit is contained in:
Barnabé 2021-09-14 16:26:28 +02:00
parent bb8c841404
commit 5f7b79139c
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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