Prechádzať zdrojové kódy

增加商品属性定义

abiao 5 rokov pred
rodič
commit
6c6208d5f9

+ 1 - 1
db/migrate/20200808124641_create_product_attrs.rb

@@ -30,7 +30,7 @@ class CreateProductAttrs < ActiveRecord::Migration
       # 规格ID
       t.column :attr_key_id, :integer, :limit => 8, :default => 0
       # 类型
-      t.column :size_type, :integer, :limit => 8, :default => 0
+      t.column :size_type, :string, :limit => 64
       t.timestamps
     end