ros-apartment 3.4.2 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/apartment/tasks/schema_dumper.rb +5 -4
- data/lib/apartment/tasks/task_helper.rb +3 -3
- data/lib/apartment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f49aeee027e9b0efcfa2582df0370ec85c9825eab664bab8fda3fbcf519423b4
|
|
4
|
+
data.tar.gz: 5f6f755319a8e2126d2e1f778da1908a84b7f3463540af929c242cb6ccd67438
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65ec120872ede00a3e8b7b808786dde24bd8e8f8282c9e64be3a5ac2cbf32aa919ff9317364e32c95d66f62c6f01cb7cddb0a27783031042b3c3b9fd8f97ae43
|
|
7
|
+
data.tar.gz: 85fabb97517aaa2941f14e037ac6e94c208ebed031625607bef4b9df46eed1a688c155834ac5f4f44691dcc63e0107c0fd9ea9881b711eb3e3ef785be8406db7
|
|
@@ -96,12 +96,13 @@ module Apartment
|
|
|
96
96
|
Rake::Task.task_defined?(task_name)
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
#
|
|
100
|
-
#
|
|
99
|
+
# Reads Rails' global schema dump setting. ActiveRecord exposes this
|
|
100
|
+
# as a singleton accessor since 7.0; the respond_to? guard is a
|
|
101
|
+
# defensive fallback that defaults to enabled if the API is missing.
|
|
101
102
|
def rails_dump_schema_enabled?
|
|
102
|
-
return true unless ActiveRecord
|
|
103
|
+
return true unless ActiveRecord.respond_to?(:dump_schema_after_migration)
|
|
103
104
|
|
|
104
|
-
ActiveRecord
|
|
105
|
+
ActiveRecord.dump_schema_after_migration
|
|
105
106
|
end
|
|
106
107
|
end
|
|
107
108
|
end
|
|
@@ -85,13 +85,13 @@ module Apartment
|
|
|
85
85
|
|
|
86
86
|
# Parallel execution wrapper. Disables advisory locks for the duration,
|
|
87
87
|
# then delegates to platform-appropriate parallelism strategy.
|
|
88
|
-
def each_tenant_parallel(&)
|
|
88
|
+
def each_tenant_parallel(&block)
|
|
89
89
|
with_advisory_locks_disabled do
|
|
90
90
|
case resolve_parallel_strategy
|
|
91
91
|
when :processes
|
|
92
|
-
each_tenant_in_processes(&)
|
|
92
|
+
each_tenant_in_processes(&block)
|
|
93
93
|
else
|
|
94
|
-
each_tenant_in_threads(&)
|
|
94
|
+
each_tenant_in_threads(&block)
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
end
|
data/lib/apartment/version.rb
CHANGED