20210203114699_add_products.rb 891 B

123456789101112131415161718192021222324252627
  1. # This migration and CreateVersionAssociations provide the necessary
  2. # schema for tracking associations.
  3. class AddProducts < ActiveRecord::Migration
  4. def up
  5. add_column :promotions, :prod4, :integer
  6. add_column :promotions, :nums4, :integer
  7. add_column :promotions, :prod5, :integer
  8. add_column :promotions, :nums5, :integer
  9. add_column :promotions, :send_prod4, :integer
  10. add_column :promotions, :send_nums4, :integer
  11. add_column :promotions, :send_prod5, :integer
  12. add_column :promotions, :send_nums5, :integer
  13. end
  14. def down
  15. remove_column :promotions, :prod4
  16. remove_column :promotions, :nums4
  17. remove_column :promotions, :prod5
  18. remove_column :promotions, :nums5
  19. remove_column :promotions, :send_prod4
  20. remove_column :promotions, :send_nums4
  21. remove_column :promotions, :send_prod5
  22. remove_column :promotions, :send_nums5
  23. end
  24. end