Skip to content

Commit

Permalink
Create migration file to add recurring donation option fields to opti…
Browse files Browse the repository at this point in the history
…ons table
  • Loading branch information
winsonwan committed Feb 23, 2024
1 parent f4e79b8 commit bab7710
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bab7710

Please sign in to comment.