From bab7710fa4a6f2603ee3f982efb785b707fb3521 Mon Sep 17 00:00:00 2001 From: Winson Wan Date: Fri, 23 Feb 2024 08:44:21 -0800 Subject: [PATCH] Create migration file to add recurring donation option fields to options table --- ...223155322_add_recurring_donation_fields_to_options.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20240223155322_add_recurring_donation_fields_to_options.rb diff --git a/db/migrate/20240223155322_add_recurring_donation_fields_to_options.rb b/db/migrate/20240223155322_add_recurring_donation_fields_to_options.rb new file mode 100644 index 000000000..ab75e4812 --- /dev/null +++ b/db/migrate/20240223155322_add_recurring_donation_fields_to_options.rb @@ -0,0 +1,9 @@ +class AddRecurringDonationFieldsToOptions < ActiveRecord::Migration + def change + add_column :options, :allow_recurring_donations, :boolean, default: false + add_column :options, :default_donation_type, :string, default: "One Time" + add_column :options, :recurring_donation_contact_emails, :text + add_column :options, :notify_theatre_about_new_recurring_donation, :boolean, default: true + add_column :options, :notify_threate_about_failed_recurring_donation_charge, :boolean, default: true + end +end