composite_primary_keys 12.0.2 → 12.0.7
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.
Potentially problematic release.
This version of composite_primary_keys might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.rdoc +30 -0
- data/README.rdoc +3 -2
- data/lib/composite_primary_keys.rb +57 -56
- data/lib/composite_primary_keys/active_model/attribute_assignment.rb +19 -0
- data/lib/composite_primary_keys/arel/sqlserver.rb +1 -3
- data/lib/composite_primary_keys/associations/through_association.rb +2 -1
- data/lib/composite_primary_keys/attribute_methods.rb +1 -1
- data/lib/composite_primary_keys/attribute_methods/primary_key.rb +13 -0
- data/lib/composite_primary_keys/base.rb +11 -0
- data/lib/composite_primary_keys/composite_arrays.rb +0 -8
- data/lib/composite_primary_keys/connection_adapters/abstract/database_statements.rb +24 -4
- data/lib/composite_primary_keys/connection_adapters/mysql/database_statements.rb +24 -0
- data/lib/composite_primary_keys/connection_adapters/sqlserver/database_statements.rb +32 -11
- data/lib/composite_primary_keys/core.rb +1 -1
- data/lib/composite_primary_keys/persistence.rb +2 -2
- data/lib/composite_primary_keys/relation.rb +100 -25
- data/lib/composite_primary_keys/relation/batches.rb +1 -1
- data/lib/composite_primary_keys/relation/finder_methods.rb +1 -1
- data/lib/composite_primary_keys/relation/predicate_builder/association_query_value.rb +1 -1
- data/lib/composite_primary_keys/version.rb +1 -1
- data/test/abstract_unit.rb +2 -1
- data/test/connections/databases.ci.yml +5 -2
- data/test/fixtures/article.rb +4 -0
- data/test/fixtures/articles.yml +4 -3
- data/test/fixtures/comment.rb +1 -3
- data/test/fixtures/comments.yml +10 -9
- data/test/fixtures/db_definitions/db2-create-tables.sql +0 -14
- data/test/fixtures/db_definitions/db2-drop-tables.sql +1 -3
- data/test/fixtures/db_definitions/mysql.sql +7 -44
- data/test/fixtures/db_definitions/oracle.drop.sql +3 -9
- data/test/fixtures/db_definitions/oracle.sql +12 -48
- data/test/fixtures/db_definitions/postgresql.sql +7 -44
- data/test/fixtures/db_definitions/sqlite.sql +6 -42
- data/test/fixtures/db_definitions/sqlserver.sql +5 -41
- data/test/fixtures/department.rb +8 -3
- data/test/fixtures/departments.yml +4 -4
- data/test/fixtures/readings.yml +2 -2
- data/test/fixtures/restaurants_suburbs.yml +1 -1
- data/test/fixtures/streets.yml +2 -2
- data/test/fixtures/suburbs.yml +2 -2
- data/test/fixtures/user.rb +3 -2
- data/test/test_associations.rb +30 -23
- data/test/test_create.rb +41 -18
- data/test/test_delete.rb +3 -3
- data/test/test_exists.rb +5 -5
- data/test/test_find.rb +21 -2
- data/test/test_habtm.rb +2 -2
- data/test/test_ids.rb +2 -6
- data/test/test_nested_attributes.rb +0 -57
- data/test/test_polymorphic.rb +29 -13
- data/test/test_preload.rb +4 -3
- data/test/test_serialize.rb +2 -2
- data/test/test_update.rb +19 -1
- metadata +11 -25
- data/test/fixtures/hack.rb +0 -5
- data/test/fixtures/hacks.yml +0 -3
- data/test/fixtures/pk_called_id.rb +0 -5
- data/test/fixtures/pk_called_ids.yml +0 -11
- data/test/fixtures/reference_code_using_composite_key_alias.rb +0 -8
- data/test/fixtures/reference_code_using_simple_key_alias.rb +0 -8
- data/test/fixtures/seat.rb +0 -5
- data/test/fixtures/seats.yml +0 -9
- data/test/fixtures/topic.rb +0 -6
- data/test/fixtures/topic_source.rb +0 -7
- data/test/test_aliases.rb +0 -18
- data/test/test_enum.rb +0 -21
- data/test/test_suite.rb +0 -35
data/test/test_create.rb
CHANGED
@@ -48,16 +48,30 @@ class TestCreate < ActiveSupport::TestCase
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
51
|
+
def test_create_with_array
|
52
|
+
date = Date.new(2027, 01, 27)
|
53
|
+
tariff = Tariff.create!(id: [10, date], amount: 27)
|
54
|
+
refute_nil(tariff)
|
55
|
+
assert_equal([10, date], tariff.id)
|
56
|
+
assert_equal(date, tariff.start_date)
|
57
|
+
assert_equal(27, tariff.amount)
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_create_with_partial_serial
|
61
|
+
attributes = {:location_id => 100}
|
62
|
+
|
63
|
+
# SQLite does not support an autoincrementing field in a composite key
|
64
|
+
if Department.connection.class.name == "ActiveRecord::ConnectionAdapters::SQLite3Adapter"
|
65
|
+
attributes[:id] = 200
|
66
|
+
end
|
67
|
+
|
68
|
+
department = Department.new(attributes)
|
69
|
+
assert_nil(department.attributes[:id])
|
70
|
+
|
71
|
+
department.save!
|
72
|
+
refute_nil(department.attributes["id"])
|
73
|
+
assert_equal(100, department.location_id)
|
74
|
+
end
|
61
75
|
|
62
76
|
def test_create_on_association
|
63
77
|
suburb = Suburb.first
|
@@ -165,14 +179,6 @@ class TestCreate < ActiveSupport::TestCase
|
|
165
179
|
assert_equal(assignment2, room.room_assignments[1])
|
166
180
|
end
|
167
181
|
|
168
|
-
def test_create_article_invalid_id
|
169
|
-
error = assert_raises(ActiveRecord::RecordInvalid) do
|
170
|
-
Article.create!(:id => 1)
|
171
|
-
end
|
172
|
-
|
173
|
-
assert_equal('Validation failed: Id has already been taken', error.to_s)
|
174
|
-
end
|
175
|
-
|
176
182
|
def test_find_or_create_by
|
177
183
|
suburb = Suburb.find_by(:city_id => 3, :suburb_id => 1)
|
178
184
|
assert_nil(suburb)
|
@@ -180,4 +186,21 @@ class TestCreate < ActiveSupport::TestCase
|
|
180
186
|
suburb = Suburb.find_or_create_by!(:name => 'New Suburb', :city_id => 3, :suburb_id => 1)
|
181
187
|
refute_nil(suburb)
|
182
188
|
end
|
189
|
+
|
190
|
+
def test_cache
|
191
|
+
Suburb.cache do
|
192
|
+
# Suburb does not exist
|
193
|
+
suburb = Suburb.find_by(:city_id => 10, :suburb_id => 10)
|
194
|
+
assert_nil(suburb)
|
195
|
+
|
196
|
+
# Create it
|
197
|
+
suburb = Suburb.create!(:name => 'New Suburb', :city_id => 10, :suburb_id => 10)
|
198
|
+
|
199
|
+
# Should be able to find it
|
200
|
+
suburb = Suburb.find_by(:city_id => 10)
|
201
|
+
refute_nil(suburb)
|
202
|
+
refute_nil(suburb.city_id)
|
203
|
+
refute_nil(suburb.suburb_id)
|
204
|
+
end
|
205
|
+
end
|
183
206
|
end
|
data/test/test_delete.rb
CHANGED
@@ -131,13 +131,13 @@ class TestDelete < ActiveSupport::TestCase
|
|
131
131
|
def test_delete_not_destroy_on_cpk
|
132
132
|
tariff = Tariff.where(tariff_id: 2).first
|
133
133
|
tariff.delete
|
134
|
-
|
134
|
+
refute(tariff.persisted?)
|
135
135
|
end
|
136
136
|
|
137
137
|
def test_delete_not_destroy_on_non_cpk
|
138
|
-
article =
|
138
|
+
article = articles(:third)
|
139
139
|
article.delete
|
140
|
-
|
140
|
+
refute(article.persisted?)
|
141
141
|
end
|
142
142
|
|
143
143
|
def test_destroy_has_many_delete_all
|
data/test/test_exists.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require File.expand_path('../abstract_unit', __FILE__)
|
2
2
|
|
3
3
|
class TestExists < ActiveSupport::TestCase
|
4
|
-
fixtures :articles, :departments, :
|
4
|
+
fixtures :articles, :capitols, :departments, :dorms
|
5
5
|
|
6
6
|
def test_id
|
7
|
-
assert(
|
8
|
-
|
7
|
+
assert(Dorm.exists?(1))
|
8
|
+
refute(Dorm.exists?(-1))
|
9
9
|
end
|
10
10
|
|
11
11
|
def test_array
|
@@ -29,8 +29,8 @@ class TestExists < ActiveSupport::TestCase
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def test_cpk_array_condition
|
32
|
-
assert(Department.exists?(['
|
33
|
-
assert(!Department.exists?(['
|
32
|
+
assert(Department.exists?(['id = ? and location_id = ?', 1, 1]))
|
33
|
+
assert(!Department.exists?(['id = ? and location_id = ?', 1, -1]))
|
34
34
|
end
|
35
35
|
|
36
36
|
def test_cpk_array_string_id
|
data/test/test_find.rb
CHANGED
@@ -59,7 +59,7 @@ class TestFind < ActiveSupport::TestCase
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def test_find_each_with_scope
|
62
|
-
scoped_departments = Department.where("
|
62
|
+
scoped_departments = Department.where("id <> 3")
|
63
63
|
scoped_departments.find_each(:batch_size => 2) do |department|
|
64
64
|
assert department.id != 3
|
65
65
|
end
|
@@ -74,9 +74,21 @@ class TestFind < ActiveSupport::TestCase
|
|
74
74
|
assert_equal(with_quoted_identifiers(expected), error.message)
|
75
75
|
end
|
76
76
|
|
77
|
+
def test_find_with_invalid_ids
|
78
|
+
assert_raise(::ActiveRecord::RecordNotFound) do
|
79
|
+
Suburb.find([-1, -1])
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def test_find_with_no_ids
|
84
|
+
assert_raise(::ActiveRecord::RecordNotFound) do
|
85
|
+
Suburb.find
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
77
89
|
def test_find_last_suburb
|
78
90
|
suburb = Suburb.last
|
79
|
-
assert_equal([2,
|
91
|
+
assert_equal([2,2], suburb.id)
|
80
92
|
end
|
81
93
|
|
82
94
|
def test_find_last_suburb_with_order
|
@@ -91,6 +103,13 @@ class TestFind < ActiveSupport::TestCase
|
|
91
103
|
end
|
92
104
|
end
|
93
105
|
|
106
|
+
def test_in_batches_enumerator
|
107
|
+
enumerator = Department.in_batches
|
108
|
+
enumerator.each do |batch|
|
109
|
+
assert_equal(Department.count, batch.size)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
94
113
|
def test_in_batches_of_1
|
95
114
|
num_found = 0
|
96
115
|
Department.in_batches(of: 1) do |batch|
|
data/test/test_habtm.rb
CHANGED
@@ -133,9 +133,9 @@ class TestHabtm < ActiveSupport::TestCase
|
|
133
133
|
|
134
134
|
# reload to force reload of associations
|
135
135
|
product_one = Product.find(1)
|
136
|
-
assert_equal
|
136
|
+
assert_equal(2, product_one.restaurants.size)
|
137
137
|
|
138
138
|
product_three = Product.find(3)
|
139
|
-
assert_equal
|
139
|
+
assert_equal(0, product_three.restaurants.size)
|
140
140
|
end
|
141
141
|
end
|
data/test/test_ids.rb
CHANGED
@@ -4,7 +4,7 @@ class ChildCpkTest < ReferenceCode
|
|
4
4
|
end
|
5
5
|
|
6
6
|
class TestIds < ActiveSupport::TestCase
|
7
|
-
fixtures :reference_types, :reference_codes
|
7
|
+
fixtures :reference_types, :reference_codes
|
8
8
|
|
9
9
|
CLASSES = {
|
10
10
|
:single => {
|
@@ -18,11 +18,7 @@ class TestIds < ActiveSupport::TestCase
|
|
18
18
|
:dual_strs => {
|
19
19
|
:class => ReferenceCode,
|
20
20
|
:primary_keys => ['reference_type_id', 'reference_code'],
|
21
|
-
}
|
22
|
-
:pk_called_id => {
|
23
|
-
:class => PkCalledId,
|
24
|
-
:primary_keys => ['id', 'reference_code'],
|
25
|
-
},
|
21
|
+
}
|
26
22
|
}
|
27
23
|
|
28
24
|
def setup
|
@@ -64,61 +64,4 @@ class TestNestedAttributes < ActiveSupport::TestCase
|
|
64
64
|
assert_equal(reference_code.code_label, 'XX')
|
65
65
|
assert_equal(reference_code.abbreviation, 'Xx')
|
66
66
|
end
|
67
|
-
|
68
|
-
fixtures :topics, :topic_sources
|
69
|
-
|
70
|
-
def test_nested_attributes_create_with_string_in_primary_key
|
71
|
-
platform = 'instagram'
|
72
|
-
|
73
|
-
topic = topics(:music)
|
74
|
-
topic.update :topic_sources_attributes => [{
|
75
|
-
:platform => platform,
|
76
|
-
:keywords => 'funk'
|
77
|
-
}]
|
78
|
-
assert_not_nil TopicSource.find_by_platform(platform)
|
79
|
-
end
|
80
|
-
|
81
|
-
def test_nested_attributes_update_with_string_in_primary_key
|
82
|
-
platform = 'instagram'
|
83
|
-
|
84
|
-
topic = topics(:music)
|
85
|
-
topic.update :topic_sources_attributes => [{
|
86
|
-
:platform => platform,
|
87
|
-
:keywords => 'funk'
|
88
|
-
}]
|
89
|
-
assert_not_nil TopicSource.find_by_platform(platform)
|
90
|
-
|
91
|
-
topic_source = TopicSource.find_by_platform(platform)
|
92
|
-
cpk = CompositePrimaryKeys::CompositeKeys[topic.id, platform]
|
93
|
-
topic.update :topic_sources_attributes => [{
|
94
|
-
:id => cpk,
|
95
|
-
:keywords => 'jazz'
|
96
|
-
}]
|
97
|
-
|
98
|
-
topic_source = TopicSource.find_by_platform(platform)
|
99
|
-
assert_kind_of(TopicSource, topic_source)
|
100
|
-
assert_equal(topic_source.keywords, 'jazz')
|
101
|
-
end
|
102
|
-
|
103
|
-
def test_nested_attributes_update_with_string_in_primary_key_2
|
104
|
-
topic = topics(:music)
|
105
|
-
topic_source = topic_sources(:music_source)
|
106
|
-
|
107
|
-
topic.update(:topic_sources_attributes => [{:id => topic_source.id,
|
108
|
-
:keywords => 'classical, jazz'}])
|
109
|
-
|
110
|
-
topic_source.reload
|
111
|
-
assert_equal(topic_source.keywords, 'classical, jazz')
|
112
|
-
end
|
113
|
-
|
114
|
-
def test_nested_attributes_update_with_string_in_primary_key_3
|
115
|
-
topic = topics(:music)
|
116
|
-
topic_source = topic_sources(:music_source)
|
117
|
-
|
118
|
-
topic.update(:topic_sources_attributes => [{:id => topic_source.id.to_s,
|
119
|
-
:keywords => 'classical, jazz'}])
|
120
|
-
|
121
|
-
topic_source.reload
|
122
|
-
assert_equal(topic_source.keywords, 'classical, jazz')
|
123
|
-
end
|
124
67
|
end
|
data/test/test_polymorphic.rb
CHANGED
@@ -1,27 +1,43 @@
|
|
1
1
|
require File.expand_path('../abstract_unit', __FILE__)
|
2
2
|
|
3
3
|
class TestPolymorphic < ActiveSupport::TestCase
|
4
|
-
fixtures :
|
4
|
+
fixtures :articles, :departments, :employees, :users, :comments
|
5
5
|
|
6
|
-
def
|
7
|
-
|
8
|
-
|
6
|
+
def test_has_many
|
7
|
+
user = users(:santiago)
|
8
|
+
comments = user.comments
|
9
|
+
assert_equal(user.id, comments[0].person_id)
|
9
10
|
end
|
10
11
|
|
11
|
-
def
|
12
|
-
|
13
|
-
|
12
|
+
def test_has_one
|
13
|
+
user = users(:santiago)
|
14
|
+
first_comment = user.first_comment
|
15
|
+
assert_equal(user.id, first_comment.person_id)
|
14
16
|
end
|
15
17
|
|
16
18
|
def test_has_many_through
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
assert_equal
|
19
|
+
department = departments(:accounting)
|
20
|
+
comment = comments(:employee_comment)
|
21
|
+
|
22
|
+
assert_equal(1, department.comments.size)
|
23
|
+
assert_equal(comment, department.comments[0])
|
21
24
|
end
|
22
25
|
|
23
|
-
def
|
26
|
+
def test_has_many_through_2
|
27
|
+
article = articles(:second)
|
28
|
+
|
24
29
|
user = users(:santiago)
|
25
|
-
assert_equal(
|
30
|
+
assert_equal(user, article.user_commentators[0])
|
31
|
+
|
32
|
+
user = users(:drnic)
|
33
|
+
assert_equal(user, article.user_commentators[1])
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_clear_has_many_through
|
37
|
+
article = articles(:second)
|
38
|
+
|
39
|
+
assert_equal(2, article.comments.size)
|
40
|
+
article.user_commentators = []
|
41
|
+
assert_equal(0, article.comments.size)
|
26
42
|
end
|
27
43
|
end
|
data/test/test_preload.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.expand_path('../abstract_unit', __FILE__)
|
2
2
|
|
3
3
|
class TestPreload < ActiveSupport::TestCase
|
4
|
-
fixtures :comments, :users, :employees, :groups, :
|
4
|
+
fixtures :articles, :comments, :users, :employees, :groups, :readings
|
5
5
|
|
6
6
|
class UserForPreload < User
|
7
7
|
has_many :comments_with_include_condition, -> { where('person_type = ?', 'User')},
|
@@ -31,10 +31,11 @@ class TestPreload < ActiveSupport::TestCase
|
|
31
31
|
|
32
32
|
def test_preload_for_conditioned_has_many_association
|
33
33
|
# has one comment
|
34
|
+
article = articles(:first)
|
34
35
|
user1 = users(:santiago)
|
35
36
|
user2 = UserForPreload.create(name: 'TestPreload')
|
36
|
-
Comment.create(person: user2, person_type: 'User')
|
37
|
-
Comment.create(person: user2, person_type: 'User')
|
37
|
+
Comment.create(article: article, person: user2, person_type: 'User')
|
38
|
+
Comment.create(article: article, person: user2, person_type: 'User')
|
38
39
|
|
39
40
|
users = UserForPreload.where(id: [user1.id, user2.id]).all
|
40
41
|
assert_equal(1, users.first.comments_with_include_condition.size)
|
data/test/test_serialize.rb
CHANGED
@@ -5,11 +5,11 @@ class TestSerialization < ActiveSupport::TestCase
|
|
5
5
|
|
6
6
|
def test_json
|
7
7
|
department = Department.first
|
8
|
-
assert_equal('{"
|
8
|
+
assert_equal('{"id":1,"location_id":1}', department.to_json)
|
9
9
|
end
|
10
10
|
|
11
11
|
def test_serializable_hash
|
12
12
|
department = Department.first
|
13
|
-
assert_equal({"
|
13
|
+
assert_equal({"id" => 1,"location_id" => 1}, department.serializable_hash)
|
14
14
|
end
|
15
15
|
end
|
data/test/test_update.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.expand_path('../abstract_unit', __FILE__)
|
2
2
|
|
3
3
|
class TestUpdate < ActiveSupport::TestCase
|
4
|
-
fixtures :reference_types, :reference_codes
|
4
|
+
fixtures :departments, :reference_types, :reference_codes, :rooms, :room_assignments
|
5
5
|
|
6
6
|
CLASSES = {
|
7
7
|
:single => {
|
@@ -36,6 +36,13 @@ class TestUpdate < ActiveSupport::TestCase
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
+
def test_update_attributes_with_id_field
|
40
|
+
department = departments(:accounting)
|
41
|
+
department.update_attribute(:location_id, 3)
|
42
|
+
department.reload
|
43
|
+
assert_equal(3, department.location_id)
|
44
|
+
end
|
45
|
+
|
39
46
|
def test_update_primary_key
|
40
47
|
obj = ReferenceCode.find([1,1])
|
41
48
|
obj.reference_type_id = 2
|
@@ -76,4 +83,15 @@ class TestUpdate < ActiveSupport::TestCase
|
|
76
83
|
|
77
84
|
assert_equal(2, query.count)
|
78
85
|
end
|
86
|
+
|
87
|
+
def test_update_with_uniqueness
|
88
|
+
assignment = room_assignments(:jacksons_room)
|
89
|
+
room_1 = rooms(:branner_room_1)
|
90
|
+
room_2 = rooms(:branner_room_3)
|
91
|
+
|
92
|
+
assert_equal(room_1, assignment.room)
|
93
|
+
assignment.room = room_2
|
94
|
+
assignment.save!
|
95
|
+
assert_equal(room_2, assignment.room)
|
96
|
+
end
|
79
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composite_primary_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.0.
|
4
|
+
version: 12.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Savage
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Composite key support for ActiveRecord
|
42
|
-
email:
|
42
|
+
email:
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- README.rdoc
|
49
49
|
- Rakefile
|
50
50
|
- lib/composite_primary_keys.rb
|
51
|
+
- lib/composite_primary_keys/active_model/attribute_assignment.rb
|
51
52
|
- lib/composite_primary_keys/arel/sqlserver.rb
|
52
53
|
- lib/composite_primary_keys/arel/to_sql.rb
|
53
54
|
- lib/composite_primary_keys/associations/association.rb
|
@@ -70,6 +71,7 @@ files:
|
|
70
71
|
- lib/composite_primary_keys/composite_relation.rb
|
71
72
|
- lib/composite_primary_keys/connection_adapters/abstract/database_statements.rb
|
72
73
|
- lib/composite_primary_keys/connection_adapters/abstract_adapter.rb
|
74
|
+
- lib/composite_primary_keys/connection_adapters/mysql/database_statements.rb
|
73
75
|
- lib/composite_primary_keys/connection_adapters/postgresql/database_statements.rb
|
74
76
|
- lib/composite_primary_keys/connection_adapters/sqlserver/database_statements.rb
|
75
77
|
- lib/composite_primary_keys/core.rb
|
@@ -126,14 +128,10 @@ files:
|
|
126
128
|
- test/fixtures/employees.yml
|
127
129
|
- test/fixtures/group.rb
|
128
130
|
- test/fixtures/groups.yml
|
129
|
-
- test/fixtures/hack.rb
|
130
|
-
- test/fixtures/hacks.yml
|
131
131
|
- test/fixtures/membership.rb
|
132
132
|
- test/fixtures/membership_status.rb
|
133
133
|
- test/fixtures/membership_statuses.yml
|
134
134
|
- test/fixtures/memberships.yml
|
135
|
-
- test/fixtures/pk_called_id.rb
|
136
|
-
- test/fixtures/pk_called_ids.yml
|
137
135
|
- test/fixtures/product.rb
|
138
136
|
- test/fixtures/product_tariff.rb
|
139
137
|
- test/fixtures/product_tariffs.yml
|
@@ -141,8 +139,6 @@ files:
|
|
141
139
|
- test/fixtures/reading.rb
|
142
140
|
- test/fixtures/readings.yml
|
143
141
|
- test/fixtures/reference_code.rb
|
144
|
-
- test/fixtures/reference_code_using_composite_key_alias.rb
|
145
|
-
- test/fixtures/reference_code_using_simple_key_alias.rb
|
146
142
|
- test/fixtures/reference_codes.yml
|
147
143
|
- test/fixtures/reference_type.rb
|
148
144
|
- test/fixtures/reference_types.yml
|
@@ -158,8 +154,6 @@ files:
|
|
158
154
|
- test/fixtures/room_attribute_assignments.yml
|
159
155
|
- test/fixtures/room_attributes.yml
|
160
156
|
- test/fixtures/rooms.yml
|
161
|
-
- test/fixtures/seat.rb
|
162
|
-
- test/fixtures/seats.yml
|
163
157
|
- test/fixtures/street.rb
|
164
158
|
- test/fixtures/streets.yml
|
165
159
|
- test/fixtures/student.rb
|
@@ -168,15 +162,12 @@ files:
|
|
168
162
|
- test/fixtures/suburbs.yml
|
169
163
|
- test/fixtures/tariff.rb
|
170
164
|
- test/fixtures/tariffs.yml
|
171
|
-
- test/fixtures/topic.rb
|
172
|
-
- test/fixtures/topic_source.rb
|
173
165
|
- test/fixtures/topic_sources.yml
|
174
166
|
- test/fixtures/topics.yml
|
175
167
|
- test/fixtures/user.rb
|
176
168
|
- test/fixtures/users.yml
|
177
169
|
- test/plugins/pagination.rb
|
178
170
|
- test/plugins/pagination_helper.rb
|
179
|
-
- test/test_aliases.rb
|
180
171
|
- test/test_associations.rb
|
181
172
|
- test/test_attribute_methods.rb
|
182
173
|
- test/test_attributes.rb
|
@@ -188,7 +179,6 @@ files:
|
|
188
179
|
- test/test_delete.rb
|
189
180
|
- test/test_dumpable.rb
|
190
181
|
- test/test_dup.rb
|
191
|
-
- test/test_enum.rb
|
192
182
|
- test/test_equal.rb
|
193
183
|
- test/test_exists.rb
|
194
184
|
- test/test_find.rb
|
@@ -203,7 +193,6 @@ files:
|
|
203
193
|
- test/test_preload.rb
|
204
194
|
- test/test_santiago.rb
|
205
195
|
- test/test_serialize.rb
|
206
|
-
- test/test_suite.rb
|
207
196
|
- test/test_touch.rb
|
208
197
|
- test/test_tutorial_example.rb
|
209
198
|
- test/test_update.rb
|
@@ -212,7 +201,7 @@ homepage: https://github.com/composite-primary-keys/composite_primary_keys
|
|
212
201
|
licenses:
|
213
202
|
- MIT
|
214
203
|
metadata: {}
|
215
|
-
post_install_message:
|
204
|
+
post_install_message:
|
216
205
|
rdoc_options: []
|
217
206
|
require_paths:
|
218
207
|
- lib
|
@@ -227,17 +216,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
216
|
- !ruby/object:Gem::Version
|
228
217
|
version: '0'
|
229
218
|
requirements: []
|
230
|
-
rubygems_version: 3.
|
231
|
-
signing_key:
|
219
|
+
rubygems_version: 3.2.8
|
220
|
+
signing_key:
|
232
221
|
specification_version: 4
|
233
222
|
summary: Composite key support for ActiveRecord
|
234
223
|
test_files:
|
235
|
-
- test/abstract_unit.rb
|
236
224
|
- test/README_tests.rdoc
|
237
|
-
- test/
|
225
|
+
- test/abstract_unit.rb
|
238
226
|
- test/test_associations.rb
|
239
|
-
- test/test_attributes.rb
|
240
227
|
- test/test_attribute_methods.rb
|
228
|
+
- test/test_attributes.rb
|
241
229
|
- test/test_calculations.rb
|
242
230
|
- test/test_callbacks.rb
|
243
231
|
- test/test_composite_arrays.rb
|
@@ -246,7 +234,6 @@ test_files:
|
|
246
234
|
- test/test_delete.rb
|
247
235
|
- test/test_dumpable.rb
|
248
236
|
- test/test_dup.rb
|
249
|
-
- test/test_enum.rb
|
250
237
|
- test/test_equal.rb
|
251
238
|
- test/test_exists.rb
|
252
239
|
- test/test_find.rb
|
@@ -261,7 +248,6 @@ test_files:
|
|
261
248
|
- test/test_preload.rb
|
262
249
|
- test/test_santiago.rb
|
263
250
|
- test/test_serialize.rb
|
264
|
-
- test/test_suite.rb
|
265
251
|
- test/test_touch.rb
|
266
252
|
- test/test_tutorial_example.rb
|
267
253
|
- test/test_update.rb
|