diff --git a/db/migrate/20211005134955_create_p_fournisseur_refs.rb b/db/migrate/20211005134955_create_p_fournisseur_refs.rb index dc65fc0..a7d3866 100644 --- a/db/migrate/20211005134955_create_p_fournisseur_refs.rb +++ b/db/migrate/20211005134955_create_p_fournisseur_refs.rb @@ -2,6 +2,7 @@ class CreatePFournisseurRefs < ActiveRecord::Migration[6.0] def change create_table :p_fournisseur_refs do |t| t.string :ref + t.string :label t.references :p_product_ref, foreign_key: true t.references :p_fournisseur, foreign_key: true diff --git a/db/schema.rb b/db/schema.rb index 15f694f..83454f6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1453,6 +1453,7 @@ ActiveRecord::Schema.define(version: 2021_10_05_134955) do create_table "p_fournisseur_refs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| t.string "ref" + t.string "label" t.bigint "p_product_ref_id" t.bigint "p_fournisseur_id" t.datetime "created_at", precision: 6, null: false