Browse Source

增加商品属性定义

abiao 5 years ago
parent
commit
6c6208d5f9
1 changed files with 1 additions and 1 deletions
  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