diff --git a/db/migrate/20180417075800_add_name_to_product_order_documents.rb b/db/migrate/20180417075800_add_name_to_product_order_documents.rb new file mode 100644 index 0000000..6f2f124 --- /dev/null +++ b/db/migrate/20180417075800_add_name_to_product_order_documents.rb @@ -0,0 +1,5 @@ +class AddNameToProductOrderDocuments < ActiveRecord::Migration + def change + add_column :product_order_documents, :name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 8a876cc..bbb13d7 100755 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180416162335) do +ActiveRecord::Schema.define(version: 20180417075800) do create_table "abonnements", force: :cascade do |t| t.integer "abonnement_type_id", limit: 4 @@ -833,6 +833,7 @@ ActiveRecord::Schema.define(version: 20180416162335) do t.integer "data_file_id", limit: 4 t.integer "reseaux_id", limit: 4 t.integer "fournisseur_id", limit: 4 + t.string "name", limit: 255 t.datetime "created_at", null: false t.datetime "updated_at", null: false end @@ -854,6 +855,7 @@ ActiveRecord::Schema.define(version: 20180416162335) do t.string "token", limit: 255 t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "name", limit: 255 end add_index "product_order_documents", ["product_order_id"], name: "index_product_order_documents_on_product_order_id", using: :btree