Sha256: e1d59bb55b56ae39e9e2989542b1e12178140b8ea12997daa958cc90506b27b4
Contents?: true
Size: 392 Bytes
Versions: 141
Compression:
Stored size: 392 Bytes
Contents
class MigrateTeamConnectedOauthStripeAccounts < ActiveRecord::Migration[6.1] def up Oauth::StripeAccount.find_each do |oauth_stripe_account| if (team = oauth_stripe_account.team) team.integrations_stripe_installations.find_or_create_by(oauth_stripe_account: oauth_stripe_account) end end end def down raise ActiveRecord::IrreversibleMigration end end
Version data entries
141 entries across 141 versions & 1 rubygems