瀏覽代碼

增加出库数

shen 4 年之前
父節點
當前提交
c6ce318e12
共有 2 個文件被更改,包括 13 次插入1 次删除
  1. 2 1
      config/locales/models/product.yml
  2. 11 0
      db/migrate/20210808032357_add_out_nums_column_to_products.rb

+ 2 - 1
config/locales/models/product.yml

@@ -58,4 +58,5 @@ zh-CN:
         product_cycle: 生产周期
         stock_cycle: 备货周期
         min_purchase: 最低进货量
-        product_no: 商品编号
+        product_no: 商品编号
+        out_nums: 

+ 11 - 0
db/migrate/20210808032357_add_out_nums_column_to_products.rb

@@ -0,0 +1,11 @@
+# This migration and CreateVersionAssociations provide the necessary
+# schema for tracking associations.
+class AddOutNumsColumnToProducts < ActiveRecord::Migration
+  def self.up
+    add_column :products, :out_nums,  :integer, :limit => 11, :default => 0
+  end
+
+  def self.down
+    remove_column :products, :out_nums
+  end
+end