File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/safe-pg-migrations/plugins Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
module SafePgMigrations
4
4
module BlockingActivityLogger
5
- FILTERED_COLUMNS = %w(
5
+ FILTERED_COLUMNS = %w[
6
6
blocked_activity.xact_start
7
7
blocked_locks.locktype
8
8
blocked_locks.mode
9
9
blocking_activity.pid
10
10
blocked_locks.transactionid
11
- ) . freeze
11
+ ] . freeze
12
12
13
- VERBOSE_COLUMNS = %w(
13
+ VERBOSE_COLUMNS = %w[
14
14
blocking_activity.query
15
15
blocked_activity.xact_start
16
- ) . freeze
16
+ ] . freeze
17
17
18
18
%i[
19
19
add_column remove_column add_foreign_key remove_foreign_key change_column_default change_column_null create_table
Original file line number Diff line number Diff line change @@ -588,14 +588,14 @@ def up
588
588
end
589
589
590
590
private
591
-
591
+
592
592
def simulate_blocking_transaction_from_another_connection
593
593
SafePgMigrations . config . retry_delay = 1 . second
594
594
SafePgMigrations . config . safe_timeout = 0.5 . second
595
595
SafePgMigrations . config . blocking_activity_logger_margin = 0.1 . seconds
596
596
597
597
@connection . create_table ( :users )
598
-
598
+
599
599
Class . new ( ActiveRecord ::Migration ::Current ) do
600
600
def up
601
601
thread_lock = Concurrent ::CountDownLatch . new
You can’t perform that action at this time.
0 commit comments