shen лет назад: 4
Родитель
Сommit
c6ce318e12

+ 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