Skip to content

Commit 7748021

Browse files
author
Baptiste Perbos
committed
chore: cop
1 parent 3574eee commit 7748021

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/safe-pg-migrations/plugins/blocking_activity_logger.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
module SafePgMigrations
44
module BlockingActivityLogger
5-
FILTERED_COLUMNS = %w(
5+
FILTERED_COLUMNS = %w[
66
blocked_activity.xact_start
77
blocked_locks.locktype
88
blocked_locks.mode
99
blocking_activity.pid
1010
blocked_locks.transactionid
11-
).freeze
11+
].freeze
1212

13-
VERBOSE_COLUMNS = %w(
13+
VERBOSE_COLUMNS = %w[
1414
blocking_activity.query
1515
blocked_activity.xact_start
16-
).freeze
16+
].freeze
1717

1818
%i[
1919
add_column remove_column add_foreign_key remove_foreign_key change_column_default change_column_null create_table

test/safe_pg_migrations_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,14 +588,14 @@ def up
588588
end
589589

590590
private
591-
591+
592592
def simulate_blocking_transaction_from_another_connection
593593
SafePgMigrations.config.retry_delay = 1.second
594594
SafePgMigrations.config.safe_timeout = 0.5.second
595595
SafePgMigrations.config.blocking_activity_logger_margin = 0.1.seconds
596596

597597
@connection.create_table(:users)
598-
598+
599599
Class.new(ActiveRecord::Migration::Current) do
600600
def up
601601
thread_lock = Concurrent::CountDownLatch.new

0 commit comments

Comments
 (0)