Skip to content

Instantly share code, notes, and snippets.

View jessenovotny's full-sized avatar

Jesse Novotny jessenovotny

View GitHub Profile
@jessenovotny
jessenovotny / stripe_data_migration.rb
Last active May 6, 2024 08:00
Copy production stripe data to sandbox
# connect to production
Stipe.api_key = production_key
plans = Stripe::Plan.all
# connect to sandbox
Stripe.api_key = test_key
plans.each do |plan|
Stripe::Plan.create(plan.attributes)
end