From a3bd5dc1b7fd6bbd88a6cfcf17f045119f3f1659 Mon Sep 17 00:00:00 2001 From: Sunandar Date: Thu, 9 Feb 2017 18:02:01 +0630 Subject: [PATCH] edit api --- db/migrate/20170208111712_add_location_code_in_clients.rb | 5 +++++ db/migrate/20170209102414_add_product_type_in_batches.rb | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 db/migrate/20170208111712_add_location_code_in_clients.rb create mode 100644 db/migrate/20170209102414_add_product_type_in_batches.rb diff --git a/db/migrate/20170208111712_add_location_code_in_clients.rb b/db/migrate/20170208111712_add_location_code_in_clients.rb new file mode 100644 index 0000000..dca0d42 --- /dev/null +++ b/db/migrate/20170208111712_add_location_code_in_clients.rb @@ -0,0 +1,5 @@ +class AddLocationCodeInClients < ActiveRecord::Migration[5.0] + def change + add_column :clients, :location_code, :string + end +end \ No newline at end of file diff --git a/db/migrate/20170209102414_add_product_type_in_batches.rb b/db/migrate/20170209102414_add_product_type_in_batches.rb new file mode 100644 index 0000000..ca7a555 --- /dev/null +++ b/db/migrate/20170209102414_add_product_type_in_batches.rb @@ -0,0 +1,5 @@ +class AddProductTypeInBatches < ActiveRecord::Migration[5.0] + def change + add_reference :batches, :product_category, index: true + end +end