schema_plus_foreign_keys 0.1.8 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/prs.yml +173 -0
- data/.gitignore +1 -0
- data/.simplecov +20 -0
- data/Gemfile +4 -1
- data/README.md +43 -27
- data/Rakefile +3 -1
- data/gemfiles/Gemfile.base +1 -1
- data/gemfiles/activerecord-5.2/Gemfile.base +2 -1
- data/gemfiles/activerecord-5.2/Gemfile.mysql2 +2 -2
- data/gemfiles/activerecord-5.2/Gemfile.postgresql +2 -2
- data/gemfiles/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.0 → 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-4.2.1 → activerecord-6.1}/Gemfile.sqlite3 +3 -3
- 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-4.2.6 → activerecord-7.0}/Gemfile.sqlite3 +3 -3
- data/lib/schema_plus/foreign_keys/active_record/base.rb +2 -0
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/abstract/schema_creation.rb +14 -12
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/abstract_adapter.rb +7 -47
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/foreign_key_definition.rb +4 -35
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/mysql2_adapter.rb +15 -16
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/postgresql_adapter.rb +8 -6
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/sqlite3_adapter.rb +8 -6
- data/lib/schema_plus/foreign_keys/active_record/connection_adapters/table_definition.rb +7 -46
- data/lib/schema_plus/foreign_keys/active_record/migration/command_recorder.rb +4 -2
- data/lib/schema_plus/foreign_keys/middleware/dumper.rb +5 -3
- data/lib/schema_plus/foreign_keys/middleware/migration.rb +13 -5
- data/lib/schema_plus/foreign_keys/middleware/model.rb +2 -0
- data/lib/schema_plus/foreign_keys/middleware/mysql.rb +3 -1
- data/lib/schema_plus/foreign_keys/middleware/sql.rb +2 -16
- data/lib/schema_plus/foreign_keys/version.rb +3 -1
- data/lib/schema_plus/foreign_keys.rb +2 -2
- data/lib/schema_plus_foreign_keys.rb +2 -0
- data/schema_dev.yml +7 -6
- data/schema_plus_foreign_keys.gemspec +9 -9
- data/spec/deprecation_spec.rb +11 -110
- data/spec/foreign_key_definition_spec.rb +5 -3
- data/spec/foreign_key_spec.rb +22 -20
- data/spec/migration_spec.rb +36 -60
- data/spec/named_schemas_spec.rb +16 -14
- data/spec/schema_dumper_spec.rb +15 -15
- data/spec/spec_helper.rb +5 -4
- data/spec/support/reference.rb +3 -2
- metadata +35 -99
- data/.travis.yml +0 -33
- 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
- data/gemfiles/activerecord-4.2.6/Gemfile.base +0 -3
- data/gemfiles/activerecord-4.2.6/Gemfile.mysql2 +0 -10
- data/gemfiles/activerecord-4.2.6/Gemfile.postgresql +0 -10
- data/gemfiles/activerecord-5.0/Gemfile.base +0 -3
- data/gemfiles/activerecord-5.0/Gemfile.mysql2 +0 -10
- data/gemfiles/activerecord-5.0/Gemfile.postgresql +0 -10
- data/gemfiles/activerecord-5.0/Gemfile.sqlite3 +0 -10
- data/gemfiles/activerecord-5.1/Gemfile.base +0 -3
- data/gemfiles/activerecord-5.1/Gemfile.mysql2 +0 -10
- data/gemfiles/activerecord-5.1/Gemfile.postgresql +0 -10
- data/gemfiles/activerecord-5.1/Gemfile.sqlite3 +0 -10
data/spec/schema_dumper_spec.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
require 'stringio'
|
3
5
|
|
4
6
|
describe "Schema dump" do
|
5
|
-
let(:column_type) { Gem::Requirement.new('< 5.1').satisfied_by?(::ActiveRecord.version) ? :integer : :bigint }
|
6
|
-
|
7
7
|
before(:each) do
|
8
8
|
ActiveRecord::Migration.suppress_messages do
|
9
9
|
ActiveRecord::Schema.define do
|
10
|
-
connection.
|
10
|
+
connection.tables.each do |table| drop_table table, force: :cascade end
|
11
11
|
|
12
|
-
create_table :users, :
|
12
|
+
create_table :users, force: true do |t|
|
13
13
|
t.string :login
|
14
14
|
t.datetime :deleted_at
|
15
15
|
t.references :first_post, index: { unique: true }
|
16
16
|
end
|
17
17
|
|
18
|
-
create_table :posts, :
|
18
|
+
create_table :posts, force: true do |t|
|
19
19
|
t.text :body
|
20
20
|
t.references :user
|
21
21
|
t.references :first_comment
|
@@ -33,7 +33,7 @@ describe "Schema dump" do
|
|
33
33
|
t.boolean :boolean_col
|
34
34
|
end
|
35
35
|
|
36
|
-
create_table :comments, :
|
36
|
+
create_table :comments, force: true do |t|
|
37
37
|
t.text :body
|
38
38
|
t.references :post
|
39
39
|
t.references :commenter
|
@@ -59,7 +59,7 @@ describe "Schema dump" do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
it "should include foreign_key name" do
|
62
|
-
with_foreign_key Post, :user_id, :users, :id, :
|
62
|
+
with_foreign_key Post, :user_id, :users, :id, name: "yippee" do
|
63
63
|
expect(dump_posts).to match(/user_id.*foreign_key.*users.*:name=>"yippee"/)
|
64
64
|
end
|
65
65
|
end
|
@@ -72,7 +72,7 @@ describe "Schema dump" do
|
|
72
72
|
|
73
73
|
|
74
74
|
it "should include foreign_key exactly once" do
|
75
|
-
with_foreign_key Post, :user_id, :users, :id, :
|
75
|
+
with_foreign_key Post, :user_id, :users, :id, name: "yippee" do
|
76
76
|
expect(dump_posts.scan(/foreign_key.*yippee"/).length).to eq 1
|
77
77
|
end
|
78
78
|
end
|
@@ -98,7 +98,7 @@ describe "Schema dump" do
|
|
98
98
|
|
99
99
|
it "should handle regexp in ignore_tables" do
|
100
100
|
with_foreign_key Comment, :post_id, :posts, :id do
|
101
|
-
dump = dump_schema(:
|
101
|
+
dump = dump_schema(ignore: /post/)
|
102
102
|
expect(dump).to match(/create_table "comments"/)
|
103
103
|
expect(dump).not_to match(/create_table "posts"/)
|
104
104
|
end
|
@@ -107,12 +107,12 @@ describe "Schema dump" do
|
|
107
107
|
end
|
108
108
|
|
109
109
|
it "should include foreign_key options" do
|
110
|
-
with_foreign_key Post, :user_id, :users, :id, :
|
111
|
-
expect(dump_posts).to match(%q[t.(integer|bigint)\s*"user_id",.*:foreign_key=>{:references=>"users", :name=>"
|
110
|
+
with_foreign_key Post, :user_id, :users, :id, on_update: :cascade, on_delete: :nullify do
|
111
|
+
expect(dump_posts).to match(%q[t.(integer|bigint)\s*"user_id",.*:foreign_key=>{:references=>"users", :name=>"fk_rails_\w+", :on_update=>:cascade, :on_delete=>:nullify}])
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
-
context "with cyclic foreign key constraints", :
|
115
|
+
context "with cyclic foreign key constraints", sqlite3: :skip do
|
116
116
|
before(:each) do
|
117
117
|
ActiveRecord::Base.connection.add_foreign_key(Comment.table_name, User.table_name, column: :commenter_id)
|
118
118
|
ActiveRecord::Base.connection.add_foreign_key(Comment.table_name, Post.table_name, column: :post_id)
|
@@ -144,7 +144,7 @@ describe "Schema dump" do
|
|
144
144
|
|
145
145
|
ActiveRecord::Migration.suppress_messages do
|
146
146
|
ActiveRecord::Schema.define do
|
147
|
-
connection.
|
147
|
+
connection.tables.each do |table| drop_table table, force: :cascade end
|
148
148
|
|
149
149
|
create_table :grade_systems, force: true do |t|
|
150
150
|
t.string :name
|
@@ -216,12 +216,12 @@ describe "Schema dump" do
|
|
216
216
|
def with_foreign_keys(model, columnsets)
|
217
217
|
table_columns = model.columns.reject{|column| column.name == 'id'}
|
218
218
|
ActiveRecord::Migration.suppress_messages do
|
219
|
-
ActiveRecord::Migration.create_table model.table_name, :
|
219
|
+
ActiveRecord::Migration.create_table model.table_name, force: true do |t|
|
220
220
|
table_columns.each do |column|
|
221
221
|
t.column column.name, column.type, limit: column.limit
|
222
222
|
end
|
223
223
|
columnsets.each do |columns, referenced_table_name, referenced_columns, options|
|
224
|
-
t.foreign_key
|
224
|
+
t.foreign_key referenced_table_name, **(options||{}).merge(column: columns, primary_key: referenced_columns)
|
225
225
|
end
|
226
226
|
end
|
227
227
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'simplecov'
|
2
|
-
|
3
|
-
SimpleCov.start "gem"
|
4
|
+
SimpleCov.start unless SimpleCov.running
|
4
5
|
|
5
6
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
6
7
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
@@ -22,7 +23,7 @@ RSpec.configure do |config|
|
|
22
23
|
begin
|
23
24
|
example.run
|
24
25
|
ensure
|
25
|
-
ActiveRecord::Base.connection.
|
26
|
+
ActiveRecord::Base.connection.tables.each do |table|
|
26
27
|
ActiveRecord::Migration.drop_table table, force: :cascade
|
27
28
|
end
|
28
29
|
end
|
@@ -48,7 +49,7 @@ def define_schema(config={}, &block)
|
|
48
49
|
with_fk_config(config) do
|
49
50
|
ActiveRecord::Migration.suppress_messages do
|
50
51
|
ActiveRecord::Schema.define do
|
51
|
-
connection.
|
52
|
+
connection.tables.each do |table|
|
52
53
|
drop_table table, force: :cascade
|
53
54
|
end
|
54
55
|
instance_eval &block
|
data/spec/support/reference.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module SchemaPlus::Matchers
|
2
4
|
|
3
5
|
class Reference
|
@@ -22,7 +24,7 @@ module SchemaPlus::Matchers
|
|
22
24
|
@result.keep_if {|fk| fk.on_update == @on_update } if @on_update
|
23
25
|
@result.keep_if {|fk| fk.on_delete == @on_delete } if @on_delete
|
24
26
|
@result.keep_if {|fk| fk.deferrable == @deferrable } if @deferrable
|
25
|
-
@result.keep_if {|fk| fk.name == @name } if @name
|
27
|
+
@result.keep_if {|fk| @name.is_a?(String) ? fk.name == @name : fk.name.match?(@name) } if @name
|
26
28
|
!@result.empty?
|
27
29
|
end
|
28
30
|
|
@@ -76,4 +78,3 @@ module SchemaPlus::Matchers
|
|
76
78
|
end
|
77
79
|
|
78
80
|
end
|
79
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schema_plus_foreign_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
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-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,48 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: schema_plus_core
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: schema_plus_compatibility
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
37
|
- - "~>"
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
39
|
+
version: 3.1.0
|
54
40
|
type: :runtime
|
55
41
|
prerelease: false
|
56
42
|
version_requirements: !ruby/object:Gem::Requirement
|
57
43
|
requirements:
|
58
44
|
- - "~>"
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
46
|
+
version: 3.1.0
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: valuable
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,48 +58,34 @@ dependencies:
|
|
72
58
|
- - ">="
|
73
59
|
- !ruby/object:Gem::Version
|
74
60
|
version: '0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: its-it
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '1.2'
|
82
|
-
type: :runtime
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '1.2'
|
89
61
|
- !ruby/object:Gem::Dependency
|
90
62
|
name: bundler
|
91
63
|
requirement: !ruby/object:Gem::Requirement
|
92
64
|
requirements:
|
93
|
-
- - "
|
65
|
+
- - ">="
|
94
66
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
67
|
+
version: '0'
|
96
68
|
type: :development
|
97
69
|
prerelease: false
|
98
70
|
version_requirements: !ruby/object:Gem::Requirement
|
99
71
|
requirements:
|
100
|
-
- - "
|
72
|
+
- - ">="
|
101
73
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
74
|
+
version: '0'
|
103
75
|
- !ruby/object:Gem::Dependency
|
104
76
|
name: rake
|
105
77
|
requirement: !ruby/object:Gem::Requirement
|
106
78
|
requirements:
|
107
79
|
- - "~>"
|
108
80
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
81
|
+
version: '13.0'
|
110
82
|
type: :development
|
111
83
|
prerelease: false
|
112
84
|
version_requirements: !ruby/object:Gem::Requirement
|
113
85
|
requirements:
|
114
86
|
- - "~>"
|
115
87
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
88
|
+
version: '13.0'
|
117
89
|
- !ruby/object:Gem::Dependency
|
118
90
|
name: rspec
|
119
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,42 +106,14 @@ dependencies:
|
|
134
106
|
requirements:
|
135
107
|
- - "~>"
|
136
108
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
109
|
+
version: 4.2.0
|
138
110
|
type: :development
|
139
111
|
prerelease: false
|
140
112
|
version_requirements: !ruby/object:Gem::Requirement
|
141
113
|
requirements:
|
142
114
|
- - "~>"
|
143
115
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: simplecov
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - ">="
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - ">="
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0'
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: simplecov-gem-profile
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - ">="
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - ">="
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: '0'
|
116
|
+
version: 4.2.0
|
173
117
|
description: 'Extended support for foreign key constraints in ActiveRecord, including:
|
174
118
|
definition as column attribute; deferrable; and SQLite3 support; cleaner dumps;
|
175
119
|
and more!'
|
@@ -179,37 +123,30 @@ executables: []
|
|
179
123
|
extensions: []
|
180
124
|
extra_rdoc_files: []
|
181
125
|
files:
|
126
|
+
- ".github/workflows/prs.yml"
|
182
127
|
- ".gitignore"
|
183
|
-
- ".
|
128
|
+
- ".simplecov"
|
184
129
|
- Gemfile
|
185
130
|
- LICENSE.txt
|
186
131
|
- README.md
|
187
132
|
- Rakefile
|
188
133
|
- gemfiles/Gemfile.base
|
189
|
-
- gemfiles/activerecord-4.2.0/Gemfile.base
|
190
|
-
- gemfiles/activerecord-4.2.0/Gemfile.mysql2
|
191
|
-
- gemfiles/activerecord-4.2.0/Gemfile.postgresql
|
192
|
-
- gemfiles/activerecord-4.2.0/Gemfile.sqlite3
|
193
|
-
- gemfiles/activerecord-4.2.1/Gemfile.base
|
194
|
-
- gemfiles/activerecord-4.2.1/Gemfile.mysql2
|
195
|
-
- gemfiles/activerecord-4.2.1/Gemfile.postgresql
|
196
|
-
- gemfiles/activerecord-4.2.1/Gemfile.sqlite3
|
197
|
-
- gemfiles/activerecord-4.2.6/Gemfile.base
|
198
|
-
- gemfiles/activerecord-4.2.6/Gemfile.mysql2
|
199
|
-
- gemfiles/activerecord-4.2.6/Gemfile.postgresql
|
200
|
-
- gemfiles/activerecord-4.2.6/Gemfile.sqlite3
|
201
|
-
- gemfiles/activerecord-5.0/Gemfile.base
|
202
|
-
- gemfiles/activerecord-5.0/Gemfile.mysql2
|
203
|
-
- gemfiles/activerecord-5.0/Gemfile.postgresql
|
204
|
-
- gemfiles/activerecord-5.0/Gemfile.sqlite3
|
205
|
-
- gemfiles/activerecord-5.1/Gemfile.base
|
206
|
-
- gemfiles/activerecord-5.1/Gemfile.mysql2
|
207
|
-
- gemfiles/activerecord-5.1/Gemfile.postgresql
|
208
|
-
- gemfiles/activerecord-5.1/Gemfile.sqlite3
|
209
134
|
- gemfiles/activerecord-5.2/Gemfile.base
|
210
135
|
- gemfiles/activerecord-5.2/Gemfile.mysql2
|
211
136
|
- gemfiles/activerecord-5.2/Gemfile.postgresql
|
212
137
|
- gemfiles/activerecord-5.2/Gemfile.sqlite3
|
138
|
+
- gemfiles/activerecord-6.0/Gemfile.base
|
139
|
+
- gemfiles/activerecord-6.0/Gemfile.mysql2
|
140
|
+
- gemfiles/activerecord-6.0/Gemfile.postgresql
|
141
|
+
- gemfiles/activerecord-6.0/Gemfile.sqlite3
|
142
|
+
- gemfiles/activerecord-6.1/Gemfile.base
|
143
|
+
- gemfiles/activerecord-6.1/Gemfile.mysql2
|
144
|
+
- gemfiles/activerecord-6.1/Gemfile.postgresql
|
145
|
+
- gemfiles/activerecord-6.1/Gemfile.sqlite3
|
146
|
+
- gemfiles/activerecord-7.0/Gemfile.base
|
147
|
+
- gemfiles/activerecord-7.0/Gemfile.mysql2
|
148
|
+
- gemfiles/activerecord-7.0/Gemfile.postgresql
|
149
|
+
- gemfiles/activerecord-7.0/Gemfile.sqlite3
|
213
150
|
- lib/schema_plus/foreign_keys.rb
|
214
151
|
- lib/schema_plus/foreign_keys/active_record/base.rb
|
215
152
|
- lib/schema_plus/foreign_keys/active_record/connection_adapters/abstract/schema_creation.rb
|
@@ -241,7 +178,7 @@ homepage: https://github.com/SchemaPlus/schema_plus_foreign_keys
|
|
241
178
|
licenses:
|
242
179
|
- MIT
|
243
180
|
metadata: {}
|
244
|
-
post_install_message:
|
181
|
+
post_install_message:
|
245
182
|
rdoc_options: []
|
246
183
|
require_paths:
|
247
184
|
- lib
|
@@ -249,16 +186,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
249
186
|
requirements:
|
250
187
|
- - ">="
|
251
188
|
- !ruby/object:Gem::Version
|
252
|
-
version:
|
189
|
+
version: 2.5.0
|
253
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
191
|
requirements:
|
255
192
|
- - ">="
|
256
193
|
- !ruby/object:Gem::Version
|
257
194
|
version: '0'
|
258
195
|
requirements: []
|
259
|
-
|
260
|
-
|
261
|
-
signing_key:
|
196
|
+
rubygems_version: 3.3.7
|
197
|
+
signing_key:
|
262
198
|
specification_version: 4
|
263
199
|
summary: Extended support for foreign key constraints in ActiveRecord
|
264
200
|
test_files:
|
data/.travis.yml
DELETED
@@ -1,33 +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.3.1
|
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
|
-
- gemfiles/activerecord-4.2.6/Gemfile.mysql2
|
17
|
-
- gemfiles/activerecord-4.2.6/Gemfile.postgresql
|
18
|
-
- gemfiles/activerecord-4.2.6/Gemfile.sqlite3
|
19
|
-
- gemfiles/activerecord-5.0/Gemfile.mysql2
|
20
|
-
- gemfiles/activerecord-5.0/Gemfile.postgresql
|
21
|
-
- gemfiles/activerecord-5.0/Gemfile.sqlite3
|
22
|
-
- gemfiles/activerecord-5.1/Gemfile.mysql2
|
23
|
-
- gemfiles/activerecord-5.1/Gemfile.postgresql
|
24
|
-
- gemfiles/activerecord-5.1/Gemfile.sqlite3
|
25
|
-
- gemfiles/activerecord-5.2/Gemfile.mysql2
|
26
|
-
- gemfiles/activerecord-5.2/Gemfile.postgresql
|
27
|
-
- gemfiles/activerecord-5.2/Gemfile.sqlite3
|
28
|
-
env: POSTGRESQL_DB_USER=postgres MYSQL_DB_USER=travis
|
29
|
-
addons:
|
30
|
-
postgresql: '9.4'
|
31
|
-
before_script: bundle exec rake create_databases
|
32
|
-
after_script: bundle exec rake drop_databases
|
33
|
-
script: bundle exec rake travis
|