|
|
@@ -18,6 +18,8 @@ class CreateProductAttrs < ActiveRecord::Migration
|
|
|
t.column :name, :string,:limit => 500
|
|
|
# 排序
|
|
|
t.column :recommend, :integer, :limit => 8, :default => 0
|
|
|
+ # 状态
|
|
|
+ t.column :status, :boolean, :default=>1
|
|
|
t.timestamps
|
|
|
end
|
|
|
add_index :product_attrs, :attr_key_id
|