From 98ff3980f8b7cfea92f870a1c8fdcf57dfbb60b6 Mon Sep 17 00:00:00 2001 From: Nihal Mohammed Date: Tue, 17 Aug 2021 15:37:06 +0530 Subject: [PATCH] Migration of StripeConnect to StripeSCA --- ...57_rename_stripe_connect_payment_methods_to_stripe_sca.rb | 5 +++++ db/schema.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210817100257_rename_stripe_connect_payment_methods_to_stripe_sca.rb diff --git a/db/migrate/20210817100257_rename_stripe_connect_payment_methods_to_stripe_sca.rb b/db/migrate/20210817100257_rename_stripe_connect_payment_methods_to_stripe_sca.rb new file mode 100644 index 0000000000..8c4447b6de --- /dev/null +++ b/db/migrate/20210817100257_rename_stripe_connect_payment_methods_to_stripe_sca.rb @@ -0,0 +1,5 @@ +class RenameStripeConnectPaymentMethodsToStripeSca < ActiveRecord::Migration[6.1] + def change + execute "UPDATE spree_payment_methods SET type = 'Spree::Gateway::StripeSCA' WHERE type = 'Spree::Gateway::StripeConnect'" + end +end diff --git a/db/schema.rb b/db/schema.rb index dc58145fb3..3f4ac65e4a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_06_17_203927) do +ActiveRecord::Schema.define(version: 2021_08_17_100257) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"