activerecord-safer_migrations 4.0.0 → 5.0.0
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/.github/workflows/tests.yml +5 -5
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/active_record/safer_migrations/setting_helper.rb +2 -2
- data/lib/active_record/safer_migrations/version.rb +1 -1
- data/spec/active_record/safer_migrations/migration_spec.rb +2 -2
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8769c6b2a580398601ee1e2732ffb169b52ff508942ec2f962ba3df98d04693d
|
|
4
|
+
data.tar.gz: 51570c39f5d64a69dd2305d6ee546d76ad73c1771346544b96b8cc3b4481cbe0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4a8c1e584672caf73bb9152c8161c78b3a1fa9aff74af1dc280540ce7f1f5aea6c6d005a17f13b33566951226e77507536c3465550a05ce8ff321c0aaf59667
|
|
7
|
+
data.tar.gz: bce85d3f7b074c01a16eb44a9d288cede6b5b1dccccc1f7fd37c4d14ec1fce7a4a1f374319994cbeb1c1fb7cd5d62ba4b6d17ab321ac1c5d7adb8db83718f581
|
data/.github/workflows/tests.yml
CHANGED
|
@@ -24,15 +24,15 @@ jobs:
|
|
|
24
24
|
strategy:
|
|
25
25
|
fail-fast: false
|
|
26
26
|
matrix:
|
|
27
|
-
ruby-version: ["3.
|
|
27
|
+
ruby-version: ["3.2", "3.3", "3.4", "4.0"]
|
|
28
28
|
activerecord-version:
|
|
29
|
-
- "7.
|
|
30
|
-
- "
|
|
31
|
-
- "
|
|
29
|
+
- "7.2"
|
|
30
|
+
- "8.0"
|
|
31
|
+
- "8.1"
|
|
32
32
|
runs-on: ubuntu-latest
|
|
33
33
|
services:
|
|
34
34
|
postgres:
|
|
35
|
-
image: postgres:
|
|
35
|
+
image: postgres:18
|
|
36
36
|
env:
|
|
37
37
|
POSTGRES_USER: postgres
|
|
38
38
|
POSTGRES_DB: safer_migrations_test
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.4.7
|
data/CHANGELOG.md
CHANGED
|
@@ -34,12 +34,12 @@ module ActiveRecord
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def set_new_setting
|
|
37
|
-
|
|
37
|
+
ActiveRecord::Base.logger&.info "-- set_setting(#{@setting_name.inspect}, #{@value})"
|
|
38
38
|
@connection.set_setting(@setting_name, @value)
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def reset_setting
|
|
42
|
-
|
|
42
|
+
ActiveRecord::Base.logger&.info "-- set_setting(#{@setting_name.inspect}, #{@original_value})"
|
|
43
43
|
@connection.set_setting(@setting_name, @original_value)
|
|
44
44
|
end
|
|
45
45
|
|
|
@@ -79,13 +79,13 @@ RSpec.describe ActiveRecord::SaferMigrations::Migration do
|
|
|
79
79
|
-> { ActiveRecord::Base.transaction { migration.migrate(:up) } }
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
it_behaves_like "running the migration"
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
context "when running without transactional DDL" do
|
|
86
86
|
let(:run_migration) { -> { migration.migrate(:up) } }
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
it_behaves_like "running the migration"
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-safer_migrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GoCardless Engineering
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activerecord
|
|
@@ -53,7 +52,6 @@ licenses:
|
|
|
53
52
|
- MIT
|
|
54
53
|
metadata:
|
|
55
54
|
rubygems_mfa_required: 'true'
|
|
56
|
-
post_install_message:
|
|
57
55
|
rdoc_options: []
|
|
58
56
|
require_paths:
|
|
59
57
|
- lib
|
|
@@ -68,8 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
66
|
- !ruby/object:Gem::Version
|
|
69
67
|
version: '0'
|
|
70
68
|
requirements: []
|
|
71
|
-
rubygems_version: 3.
|
|
72
|
-
signing_key:
|
|
69
|
+
rubygems_version: 3.6.9
|
|
73
70
|
specification_version: 4
|
|
74
71
|
summary: ActiveRecord migration helpers to avoid downtime
|
|
75
72
|
test_files: []
|