Skip to content

Commit

Permalink
Skip connected Stripe and PayPal rows during developer dump (#9381)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg authored May 14, 2024
1 parent 5a0b6f2 commit 1bf137c
Showing 1 changed file with 3 additions and 43 deletions.
46 changes: 3 additions & 43 deletions lib/database_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,7 @@ def self.actions_to_column_sanitizers(columns_by_action)
},
),
}.freeze,
"competition_payment_integrations" => {
where_clause: "",
column_sanitizers: actions_to_column_sanitizers(
copy: %w(
id
connected_account_type
competition_id
connected_account_id
created_at
updated_at
),
),
}.freeze,
"competition_payment_integrations" => :skip_all_rows,
"CompetitionsMedia" => {
where_clause: "WHERE status = 'accepted'",
column_sanitizers: actions_to_column_sanitizers(
Expand Down Expand Up @@ -186,36 +174,8 @@ def self.actions_to_column_sanitizers(columns_by_action)
),
),
}.freeze,
"connected_paypal_accounts" => {
where_clause: "",
column_sanitizers: actions_to_column_sanitizers(
copy: %w(
id
account_status
consent_status
permissions_granted
created_at
updated_at
),
fake_values: {
"paypal_merchant_id" => "'abcdefgh'",
},
),
}.freeze,
"connected_stripe_accounts" => {
where_clause: "",
column_sanitizers: actions_to_column_sanitizers(
copy: %w(
id
created_at
updated_at
),
fake_values: {
"account_id" => "'fake_stripe_account'",
},
),
}.freeze,

"connected_paypal_accounts" => :skip_all_rows,
"connected_stripe_accounts" => :skip_all_rows,
"Continents" => {
where_clause: "",
column_sanitizers: actions_to_column_sanitizers(
Expand Down

0 comments on commit 1bf137c

Please sign in to comment.