diff --git a/app/controllers/subscription_verifications_controller.rb b/app/controllers/subscription_verifications_controller.rb index 83be079..bc8a2ce 100644 --- a/app/controllers/subscription_verifications_controller.rb +++ b/app/controllers/subscription_verifications_controller.rb @@ -10,8 +10,7 @@ def show return redirect_to '/', alert: 'Link expired - please sign up again' end - if @account.slug == 'philipithomas' - # SubscribeContraptionCoNewsletterJob.perform_later(@subscription.email_address.email) + if @account.sync_to_ghost SubscribeToContraptionGhostJob.perform_later(@subscription.email_address.email) end diff --git a/db/migrate/20260303185100_add_sync_to_ghost_to_accounts.rb b/db/migrate/20260303185100_add_sync_to_ghost_to_accounts.rb new file mode 100644 index 0000000..b005cb0 --- /dev/null +++ b/db/migrate/20260303185100_add_sync_to_ghost_to_accounts.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddSyncToGhostToAccounts < ActiveRecord::Migration[7.1] + def change + add_column :accounts, :sync_to_ghost, :boolean, default: false, null: false + end +end