schema_auto_foreign_keys 0.1.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/prs.yml +173 -0
- data/.simplecov +19 -0
- data/Gemfile +2 -1
- data/README.md +20 -8
- data/Rakefile +1 -1
- data/gemfiles/Gemfile.base +1 -1
- data/gemfiles/activerecord-5.2/Gemfile.base +4 -0
- data/gemfiles/activerecord-5.2/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-5.2/Gemfile.postgresql +10 -0
- data/gemfiles/{activerecord-4.2.0 → activerecord-5.2}/Gemfile.sqlite3 +3 -3
- data/gemfiles/activerecord-6.0/Gemfile.base +4 -0
- data/gemfiles/activerecord-6.0/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-6.0/Gemfile.postgresql +10 -0
- data/gemfiles/{activerecord-4.2.1 → activerecord-6.0}/Gemfile.sqlite3 +3 -3
- data/gemfiles/activerecord-6.1/Gemfile.base +4 -0
- data/gemfiles/activerecord-6.1/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-6.1/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-6.1/Gemfile.sqlite3 +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.base +4 -0
- data/gemfiles/activerecord-7.0/Gemfile.mysql2 +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.postgresql +10 -0
- data/gemfiles/activerecord-7.0/Gemfile.sqlite3 +10 -0
- data/lib/schema_auto_foreign_keys/active_record/connection_adapters/sqlite3_adapter.rb +1 -1
- data/lib/schema_auto_foreign_keys/middleware/migration.rb +3 -3
- data/lib/schema_auto_foreign_keys/middleware/schema.rb +1 -1
- data/lib/schema_auto_foreign_keys/version.rb +1 -1
- data/lib/schema_auto_foreign_keys.rb +2 -3
- data/schema_auto_foreign_keys.gemspec +8 -8
- data/schema_dev.yml +8 -3
- data/spec/migration_spec.rb +76 -72
- data/spec/schema_spec.rb +7 -7
- data/spec/spec_helper.rb +2 -3
- metadata +50 -64
- data/.travis.yml +0 -21
- data/gemfiles/activerecord-4.2.0/Gemfile.base +0 -3
- data/gemfiles/activerecord-4.2.0/Gemfile.mysql2 +0 -10
- data/gemfiles/activerecord-4.2.0/Gemfile.postgresql +0 -10
- data/gemfiles/activerecord-4.2.1/Gemfile.base +0 -3
- data/gemfiles/activerecord-4.2.1/Gemfile.mysql2 +0 -10
- data/gemfiles/activerecord-4.2.1/Gemfile.postgresql +0 -10
metadata
CHANGED
@@ -1,85 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_auto_foreign_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ronen barzel
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
29
|
+
version: '5.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7.1'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: schema_plus_foreign_keys
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
39
|
+
version: 1.1.0
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
46
|
+
version: 1.1.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: schema_plus_indexes
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
53
|
+
version: 1.0.1
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
60
|
+
version: 1.0.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: bundler
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
67
|
+
version: '0'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
74
|
+
version: '0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: rake
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
81
|
+
version: '13.0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
88
|
+
version: '13.0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: rspec
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,42 +106,14 @@ dependencies:
|
|
100
106
|
requirements:
|
101
107
|
- - "~>"
|
102
108
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
109
|
+
version: 4.2.0
|
104
110
|
type: :development
|
105
111
|
prerelease: false
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
114
|
- - "~>"
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: simplecov
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: simplecov-gem-profile
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
116
|
+
version: 4.2.0
|
139
117
|
description: In an ActiveRecord migration, set the default to create a foreign key
|
140
118
|
and index for all columns that define relatoins.
|
141
119
|
email:
|
@@ -144,21 +122,30 @@ executables: []
|
|
144
122
|
extensions: []
|
145
123
|
extra_rdoc_files: []
|
146
124
|
files:
|
125
|
+
- ".github/workflows/prs.yml"
|
147
126
|
- ".gitignore"
|
148
|
-
- ".
|
127
|
+
- ".simplecov"
|
149
128
|
- Gemfile
|
150
129
|
- LICENSE.txt
|
151
130
|
- README.md
|
152
131
|
- Rakefile
|
153
132
|
- gemfiles/Gemfile.base
|
154
|
-
- gemfiles/activerecord-
|
155
|
-
- gemfiles/activerecord-
|
156
|
-
- gemfiles/activerecord-
|
157
|
-
- gemfiles/activerecord-
|
158
|
-
- gemfiles/activerecord-
|
159
|
-
- gemfiles/activerecord-
|
160
|
-
- gemfiles/activerecord-
|
161
|
-
- gemfiles/activerecord-
|
133
|
+
- gemfiles/activerecord-5.2/Gemfile.base
|
134
|
+
- gemfiles/activerecord-5.2/Gemfile.mysql2
|
135
|
+
- gemfiles/activerecord-5.2/Gemfile.postgresql
|
136
|
+
- gemfiles/activerecord-5.2/Gemfile.sqlite3
|
137
|
+
- gemfiles/activerecord-6.0/Gemfile.base
|
138
|
+
- gemfiles/activerecord-6.0/Gemfile.mysql2
|
139
|
+
- gemfiles/activerecord-6.0/Gemfile.postgresql
|
140
|
+
- gemfiles/activerecord-6.0/Gemfile.sqlite3
|
141
|
+
- gemfiles/activerecord-6.1/Gemfile.base
|
142
|
+
- gemfiles/activerecord-6.1/Gemfile.mysql2
|
143
|
+
- gemfiles/activerecord-6.1/Gemfile.postgresql
|
144
|
+
- gemfiles/activerecord-6.1/Gemfile.sqlite3
|
145
|
+
- gemfiles/activerecord-7.0/Gemfile.base
|
146
|
+
- gemfiles/activerecord-7.0/Gemfile.mysql2
|
147
|
+
- gemfiles/activerecord-7.0/Gemfile.postgresql
|
148
|
+
- gemfiles/activerecord-7.0/Gemfile.sqlite3
|
162
149
|
- lib/schema_auto_foreign_keys.rb
|
163
150
|
- lib/schema_auto_foreign_keys/active_record/connection_adapters/sqlite3_adapter.rb
|
164
151
|
- lib/schema_auto_foreign_keys/middleware/migration.rb
|
@@ -176,7 +163,7 @@ homepage: https://github.com/SchemaPlus/schema_auto_foreign_keys
|
|
176
163
|
licenses:
|
177
164
|
- MIT
|
178
165
|
metadata: {}
|
179
|
-
post_install_message:
|
166
|
+
post_install_message:
|
180
167
|
rdoc_options: []
|
181
168
|
require_paths:
|
182
169
|
- lib
|
@@ -184,16 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
171
|
requirements:
|
185
172
|
- - ">="
|
186
173
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
174
|
+
version: 2.5.0
|
188
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
176
|
requirements:
|
190
177
|
- - ">="
|
191
178
|
- !ruby/object:Gem::Version
|
192
179
|
version: '0'
|
193
180
|
requirements: []
|
194
|
-
|
195
|
-
|
196
|
-
signing_key:
|
181
|
+
rubygems_version: 3.1.6
|
182
|
+
signing_key:
|
197
183
|
specification_version: 4
|
198
184
|
summary: Automatically define foreign key constraints in ActiveRecord
|
199
185
|
test_files:
|
data/.travis.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# This file was auto-generated by the schema_dev tool, based on the data in
|
2
|
-
# ./schema_dev.yml
|
3
|
-
# Please do not edit this file; any changes will be overwritten next time
|
4
|
-
# schema_dev gets run.
|
5
|
-
---
|
6
|
-
sudo: false
|
7
|
-
rvm:
|
8
|
-
- 2.1.5
|
9
|
-
gemfile:
|
10
|
-
- gemfiles/activerecord-4.2.0/Gemfile.mysql2
|
11
|
-
- gemfiles/activerecord-4.2.0/Gemfile.postgresql
|
12
|
-
- gemfiles/activerecord-4.2.0/Gemfile.sqlite3
|
13
|
-
- gemfiles/activerecord-4.2.1/Gemfile.mysql2
|
14
|
-
- gemfiles/activerecord-4.2.1/Gemfile.postgresql
|
15
|
-
- gemfiles/activerecord-4.2.1/Gemfile.sqlite3
|
16
|
-
env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
|
17
|
-
addons:
|
18
|
-
postgresql: '9.4'
|
19
|
-
before_script: bundle exec rake create_databases
|
20
|
-
after_script: bundle exec rake drop_databases
|
21
|
-
script: bundle exec rake travis
|