|
|
@@ -30,6 +30,8 @@ class CreateProductItems < ActiveRecord::Migration
|
|
|
t.column :title, :string, :limit => 255
|
|
|
# 数量
|
|
|
t.column :nums, :integer, :limit => 11, :default => 0
|
|
|
+ # 是否赠品
|
|
|
+ t.column :send, :boolean, :default=>0
|
|
|
t.timestamps
|
|
|
end
|
|
|
add_column :products, :package, :boolean, :default=>0
|