Explorar el Código

增加商品属性定义

abiao hace 5 años
padre
commit
6c6208d5f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      db/migrate/20200808124641_create_product_attrs.rb

+ 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