ros-apartment 3.4.2 → 3.4.3
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/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: 8f2eb5dc1ac31c9d5703827575fe83b8c2c68b9adac1d73e0851aaf8c5d96686
|
|
4
|
+
data.tar.gz: bc7dbc132204fac00a6f4d237a2f184fdc2ec2ddf6b93bad7cfa722836c57d42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d9439a1650872063d305de6772e5cbcd49d2ab8df07e9a0a23272cef6d6a65088eb5c55f43cbe50f8c7f5c22d14b92e198b5ad7f29fb8f7502d1302a496499c
|
|
7
|
+
data.tar.gz: 44e417832f6a7cd9f6b0e99d34191d467a8270d528f3efe398eb86a63511c63e1eb6a8a63acf881139d626749133fbf1e405b3944476de23d805f75d28791624
|
|
@@ -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
|
data/lib/apartment/version.rb
CHANGED