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