From e3d2ac0101165c25691032ef1bca958cc769af85 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 5 Dec 2019 17:11:05 +1100 Subject: [PATCH] rm old migrations --- db/migrate/20191025031631_create_customers.rb | 13 ------------- .../20191127233735_add_product_to_customer.rb | 7 ------- db/migrate/20191128044206_remove_customer_index.rb | 7 ------- 3 files changed, 27 deletions(-) delete mode 100644 db/migrate/20191025031631_create_customers.rb delete mode 100644 db/migrate/20191127233735_add_product_to_customer.rb delete mode 100644 db/migrate/20191128044206_remove_customer_index.rb diff --git a/db/migrate/20191025031631_create_customers.rb b/db/migrate/20191025031631_create_customers.rb deleted file mode 100644 index 27377e8..0000000 --- a/db/migrate/20191025031631_create_customers.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -class CreateCustomers < ActiveRecord::Migration[5.2] - def change - create_table :discourse_patrons_customers do |t| - t.string :customer_id, null: false - t.references :user, foreign_key: true - t.timestamps - end - - add_index :discourse_patrons_customers, :customer_id, unique: true - end -end diff --git a/db/migrate/20191127233735_add_product_to_customer.rb b/db/migrate/20191127233735_add_product_to_customer.rb deleted file mode 100644 index 2cc1660..0000000 --- a/db/migrate/20191127233735_add_product_to_customer.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -class AddProductToCustomer < ActiveRecord::Migration[6.0] - def change - add_column :discourse_patrons_customers, :product_id, :string - end -end diff --git a/db/migrate/20191128044206_remove_customer_index.rb b/db/migrate/20191128044206_remove_customer_index.rb deleted file mode 100644 index 5365f85..0000000 --- a/db/migrate/20191128044206_remove_customer_index.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -class RemoveCustomerIndex < ActiveRecord::Migration[6.0] - def change - remove_index :discourse_patrons_customers, :customer_id - end -end