abiao лет назад: 4
Родитель
Сommit
d0e6dbc54e
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      db/migrate/20210220114641_create_product_commends.rb

+ 2 - 1
db/migrate/20210220114641_create_product_commends.rb

@@ -18,13 +18,14 @@ class CreateProductCommends < ActiveRecord::Migration
       # 是否置顶
       t.column :is_top, :boolean, :default=>false
       # 推荐程度
-      t.column :recommend, :boolean, :default=>false
+      t.column :recommend, :integer,:null=>false, :default => 0
       # 备注
       t.column :remark, :string,:limit => 256
       t.timestamps
     end
     add_index :product_commends, :wx_user_id
     add_index :product_commends, :product_id
+    add_column :order_details, :commend, :boolean, :default=>false
 
   end