|
|
@@ -23,6 +23,7 @@ class CreateSilvers < ActiveRecord::Migration
|
|
|
add_column :orders, :paied_silver ,:integer, :limit => 11, :default => 0
|
|
|
add_column :orders, :paied_cash ,:integer, :limit => 11, :default => 0
|
|
|
add_column :order_details, :silver ,:integer, :limit => 11, :default => 0
|
|
|
+ add_column :order_details, :dis_amount ,:integer, :limit => 11, :default => 0
|
|
|
add_column :products, :silver , :integer, :limit => 11, :default => 0
|
|
|
add_column :products, :use_quan, :boolean,:limit => 1
|
|
|
end
|
|
|
@@ -35,6 +36,6 @@ class CreateSilvers < ActiveRecord::Migration
|
|
|
remove_column :products, :silver
|
|
|
remove_column :products, :use_quan
|
|
|
remove_column :order_details, :silver
|
|
|
-
|
|
|
+ remove_column :order_details, :dis_amount
|
|
|
end
|
|
|
end
|