abiao лет назад: 3
Родитель
Сommit
f53840050d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      db/migrate/20220531032358_create_silvers.rb

+ 2 - 0
db/migrate/20220531032358_create_silvers.rb

@@ -22,6 +22,7 @@ class CreateSilvers < ActiveRecord::Migration
     add_column :orders,  :total_silver ,:integer, :limit => 11, :default => 0
     add_column :orders,  :total_silver ,:integer, :limit => 11, :default => 0
     add_column :orders,  :paied_silver ,:integer, :limit => 11, :default => 0
     add_column :orders,  :paied_silver ,:integer, :limit => 11, :default => 0
     add_column :orders,  :paied_cash ,: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 :products, :silver , :integer, :limit => 11, :default => 0
     add_column :products, :silver , :integer, :limit => 11, :default => 0
     add_column :products, :use_quan, :boolean,:limit => 1
     add_column :products, :use_quan, :boolean,:limit => 1
   end
   end
@@ -33,6 +34,7 @@ class CreateSilvers < ActiveRecord::Migration
     remove_column :orders, :dis_amount
     remove_column :orders, :dis_amount
     remove_column :products, :silver
     remove_column :products, :silver
     remove_column :products, :use_quan
     remove_column :products, :use_quan
+    remove_column :order_details, :silver
 
 
   end
   end
 end
 end