abiao пре 5 година
родитељ
комит
6c6208d5f9
1 измењених фајлова са 1 додато и 1 уклоњено
  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