From e6945481e7cf20ca14d956d05d063c66a6bc5c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Thu, 7 Oct 2021 16:30:39 +0200 Subject: [PATCH] add label to p_fournisseur_ref --- db/migrate/20211005134955_create_p_fournisseur_refs.rb | 1 + db/schema.rb | 1 + 2 files changed, 2 insertions(+) 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