composite_primary_keys 13.0.6 → 13.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,907 +1,913 @@
1
- == 13.0.6 (2023-02-04)
2
- * Fix #577 (Charlie Savage)
3
-
4
- == 13.0.5 (2023-02-04)
5
- * Improve query generation for cpk_in_predicate. This reduces the length of
6
- queries when loading many keys and enables Postgres to use index scans
7
- more frequently. (Andrew Kiellor)
8
-
9
- == 13.0.4 (2022-12-05)
10
- * Fix previously_new_record? not being set to true after create
11
-
12
- == 13.0.3 (2022-01-09)
13
- * Remove override on ActiveRecord::Base#to_param. That method has moved to Integration
14
- so no longer works. #541. (Charlie Savage)
15
- * Check if an assocation is polymorhpic. Fixes #558.
16
-
17
- == 13.0.2 (2022-01-09)
18
- * Fix scoped associations take #2 (Charlie Savage)
19
-
20
- == 13.0.1 (2021-11-14)
21
- * Fix invalid sql generation for some cases of scoped associations (Ryan Mulligan)
22
- * Fix unintentional connection to database (Kazuhiro Masuda)
23
- * Zip values then keys - fixes #548 (Charlie Savage)
24
-
25
- == 13.0.0 (2021-05-09)
26
- * Update to ActiveRecord 6.1 (Javier Julio, Charlie Savage, Sammy Larbi)
27
-
28
- == 12.0.10 (2021-05-09)
29
- * Support using the #id method on records with primary keys that also have an :id attribute.
30
-
31
- == 12.0.9 (2021-02-22)
32
- * Third time is hopefully the charm on MySQL/MariaDB auto increment fix
33
-
34
- == 12.0.8 (2021-02-16)
35
- * Revert to previous MySQL/MariaDB auto increment fix
36
-
37
- == 12.0.7 (2021-02-15)
38
- * Switch to GitHub actions (ta1kt0me)
39
- * Fix MySQL/MariaDB query cache issue bug introduced in version 12.0.3 - see #539 (Charlie Savage)
40
- * Do a better job of supporting composite keys with an auto incrementing field for
41
- MySQL and MariaDB (Charlie Savage)
42
-
43
- == 12.0.6 (2021-01-04)
44
- * Fix issue when calling in_batches without a block (Charlie Savage)
45
-
46
- == 12.0.5 (2020-12-31)
47
- * Finally issue with SQLServer when tables are marked as exclude_output_inserted. See #535. (Charlie Savage)
48
-
49
- == 12.0.4 (2020-12-30)
50
- * Fix compatibility with Ruby Ruby 2.6 and below (ta1kt0me)
51
- * Finally get SQLServer mass updates and deletes working (Charlie Savage)
52
- * Fix MySQL mass updates and deletes that were broken by 12.0.3 (Charlie Savage)
53
-
54
- == 12.0.3 (2020-11-11)
55
- * Prevents infinite loops with gems which modify the 'attributes' method (Nicholas Guarino)
56
- * Improve delete_all and update_all queries (Charlie Savage)
57
- * Improve Oracle support (Charlie Savage)
58
- * Improve SQL Server support. Note delete_all and update_all queries still do not work due to
59
- quirks in SQL Server syntax (Charlie Savage)
60
- * Improve support for polymorphic associations (Charlie Savage)
61
- * Update fixtures and tests to include a model that uses an :id column as part of a composite
62
- key (Charlie Savage)
63
- * Fixed bug where id values were not correctly mapped between primary and foreign keys in associations (Charlie Savage)
64
- * Cleanup how the gem is loaded (Charlie Savage)
65
- * Remove older, unused or minimally used fixtures (Charlie Savage)
66
-
67
- == 12.0.2 (2020-05-19)
68
- * Remove deprecation warning for Ruby 2.7 due to keyword parameters (Alexandru Anca )
69
- * Use sqlite for default in tests (Charlie Savage)
70
- * Modernize gem tests by using Bundler (Charlie Savage)
71
- * Update travis for ruby 2.7 (Charlie Savage)
72
- * Port "Fix create record where one or more of the primary keys has a default value" from ar 5.2 branch (Charlie Savage)
73
- * Remove extra argument from sql_for_insert for SqlServer (tohae)
74
-
75
- == 12.0.1 (2019-11-25)
76
- * Convert attribute names to strings before checking for them in has_attribute? (Daniel de Haas)
77
- * Update the comment referring to the overridden Rails code (Daniel de Haas)
78
-
79
- == 12.0.0 (2019-09-03)
80
- * Update to ActiveRecord 6.0 (Hiroshi Kajisha, Alexandru Anca, Charlie Savage, Sammy Larbi)
81
- * Update travis setup (Olle Jonsson, Charlie Savage)
82
-
83
- ==11.3.1 (2020-04-01)¶ ↑
84
- * Fix overriding AbstractReflection for activerecord 5.2.4 (Sergey Semyonov)
85
- * Fix handling CPK with fields containing comma (Sergey Semyonov)
86
- * Fixed incorrect SQL condition for joining by CPK (Sergey Semyonov)
87
- * Update travis.yml file (Sergey Semyonov)
88
- * Add tests for composite keys with default values (Daniel Wiklund)
89
- * Fix create record where one or more of the primary keys has a default value (Daniel Wiklund)
90
-
91
- == 11.2.0 (2019-03-16)
92
- * When creating new records, honor composite key autoincrementing fields if possible (Antti Pitkänen)
93
- * Update Association#run to more closely match ActiveRecord (Fabian Mersch)
94
- * Updates needed due to changes in ActiveRecord (Sammy Larbi)
95
- * Fix construct_join_attributes method (Brad Slaughter)
96
- * Fix destroy_all on HABTM (Brad Slaughter)
97
-
98
- == 11.1.0 (2018-11-14)
99
- * Support ActiveRecord 5.2.1 (S1Artem Tselovalnikov, Caleb Buxton, Charlie Savage)
100
- * Fix counter cache (Tomonori Murakami)
101
- * Fix error on autosave has_one relations when the :primary_key option is set (Charlie Savage)
102
-
103
- == 11.0.3 (2018-06-25)
104
- * Fix overridden attribute readers and writers (Charlie Savage)
105
-
106
- == 11.0.2 (2018-06-24)
107
- * Remove no longer needed overrides (Charlie Savage)
108
-
109
- == 11.0.1 (2018-06-20)
110
- * Fix in_batches (Urmo Rae)
111
- * Fix apply_join_dependency (Charlie Savage)
112
-
113
- == 11.0.0 (2018-06-18)
114
- * Update to ActiveRecord 5.2 (Charlie Savage)
115
- * Fixes for AR 5.2 persistence changes (Erik Rothoff, Charlie Savage)
116
- * Fix system stack error (i2bskn)
117
-
118
- == 11.0.0.rc2 (2018-02-25)
119
-
120
- * Fix mysql deletion failure (Charlie Savage)
121
- * Clean test run for postgresql, mysql and sqlite3 (Charlie Savage)
122
-
123
- == 11.0.0.rc1 (2018-02-25)
124
-
125
- * Update to ActiveRecord 5.2.rc1 (Charlie Savage)
126
- * Fix uniquness check (Charlie Savage)
127
-
128
- == 11.0.0.beta4 (2018-01-08)
129
-
130
- * Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
131
-
132
- == 11.0.0.beta3 (2018-01-07)
133
-
134
- * Fix typo in Readme.doc (Lopez Lucien)
135
- * Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
136
-
137
- == 11.0.0.beta2 (2017-12-10)
138
-
139
- * Minor updates for ActiveRecord 5.2.beta2 support (Charlie Savage)
140
-
141
- == 11.0.0.beta1 (2017-12-03)
142
-
143
- * ActiveRecord 5.2.beta2 support (Charlie Savage)
144
-
145
- == 10.0.5 (2018-06-24)
146
- * Fix in_batches (Urmo Rae)
147
-
148
- == 10.0.4 (2018-06-17)
149
-
150
- * Lock mysql2 gem to 0.4.x (Le Trung Kien)
151
- * Set inversion when using preload (Le Trung Kien)
152
- * Fixes for AR 5.1.6 (Tim Morgan)
153
-
154
- == 10.0.3 (2018-02-25)
155
-
156
- * Require a minimum of activerecord version 5.1.5 (Tom Hughes)
157
-
158
- == 10.0.2 (2017-12-02)
159
-
160
- * Fix frozen string mutation for mysql (Sergey Sein)
161
- * Fix autosave for belongs_to associations (Fabian Mersch)
162
- * Require a minimum of activerecord version 5.1.4 (Charlie Savage)
163
-
164
- == 10.0.1 (2017-10-08)
165
-
166
- * Fixed an error that happened when a table attribute had the same name as the table (Taishi Kasuga)
167
-
168
- == 10.0.0 (2017-10-08)
169
-
170
- * Support ActiveRecord 5.1.x (Pinak Thakkar, Jordan Owens)
171
- * Fix Paper Trail compatibility (Sean Linsley)
172
- * Fix typo in Readme (Mike Gunderloy)
173
- * Improved sql server support (Artyom Nikolaev)
174
-
175
- == 9.0.10 (2018-06-24)
176
-
177
- * Fix AR 5.0.7 (Jordan Owens)
178
-
179
- == 9.0.8 (2017-10-11)
180
-
181
- * Fix Paper Trail compatibility (Sean Linsley)
182
-
183
- == 9.0.7 (2017-05-22)
184
-
185
- * Update sqlite3 to support deletes and updates (Charlie Savage)
186
- * Specify version for sql server gem so it works with Rails 5.0 (Charlie Savage)
187
- * Use `datetime` datatype to address Invalid default value for updated_at (Yasuo Honda)
188
- * Fix ORA-00900 error when it attempts to execute blank statement (pustomytnyk)
189
- * Override ActiveRecord::Associations::CollectionAssociation#ids_reader (pustomytnyk)
190
- * Only define #primary_keys if #primary_keys=(value) is called (Charlie Savage)
191
- * Change `timestamp` to `datetime` for MySQL as ActiveRecord timestamps type does (Oriol Collel)
192
- * Fix incorrect case statement to get PK for SQLServer (Oriol Collel)
193
- * Fixes random failures in test_preload_of_polymorphic_association (Boris Peterbarg)
194
-
195
- == 9.0.6 (2017-01-08)
196
-
197
- * Uncomment tests (Sammy Larbi)
198
- * Update readme (Charlie Savage)
199
-
200
- == 9.0.5 (2017-01-02)
201
-
202
- * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
203
- * Simplify database setup for tests (Charlie Savage)
204
- * Revamp gem management (Charlie Savage)
205
- * Add support for Relation#update_all when using joins (Charlie Savage)
206
- * Add erb support to test database.yml files (Charlie Savage)
207
- * Sqlserver fixes for ordering (Charlie Savage)
208
- * Sqlserver refresh (Charlie Savage)
209
- * Oracle refresh (Charlie Savage)
210
- * Fix delete_all for MySql (Charlie Savage)
211
- * Added test cases for preloading associations with and without conditions (Martin Körner)
212
- * Revamp single association handling to correctly setup SQL binds (Charlie Savage)
213
- * Remove references to ActiveModel - #352 (Charlie Savage)
214
- * Fixes for #232, #359, #367 and #371 (Charlie Savage)
215
-
216
- == 9.0.4 (2016-08-17)
217
- * Do not set associations to readonly. See https://github.com/rails/rails/issues/24093 (Charlie Savage)
218
-
219
- == 9.0.2 (2016-08-10)
220
- * Fix delete_all when used with a join (Charlie Savage)
221
-
222
- == 9.0.1 (2016-07-27)
223
- * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
224
-
225
- == 9.0.0 (2016-07-06)
226
- * Support connection_specification_name in rails5.0.0.rc1 (pocari)
227
-
228
- == 9.0.0.beta1 (2016-04-16)
229
- * Rails 5 beta support (Sammy Larbi)
230
-
231
- == 8.1.7 (2019-05-04)
232
-
233
- Fix key not being an array in subquery on has_many :through (Eric Proulx)
234
- Convert batches to arrays before continuing loop (Jeremy Mickelson)
235
-
236
- == 8.1.6 (2017-05-20)
237
-
238
- Query cache with bind params (ttw)
239
- Fix TestIds#test_set_ids_string. Sqlite's serial and integer are a bit different (Boris Peterbarg)
240
- Associations with inverse fix (Boris Peterbarg)
241
- Fix save_has_one_association and add a test for it (Boris Peterbarg)
242
- Fix save_belongs_to_association override (Boris Peterbarg)
243
- Extend approach from #344 to fix autosave for has_one associations as well (Cameron Finucane)
244
-
245
- == 8.1.5 (2017-01-01)
246
-
247
- * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
248
-
249
- == 8.1.4 (2016-07-27)
250
-
251
- * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
252
- * Fix find in batches (apurvis)
253
-
254
- == 8.1.3 (2016-04-16)
255
-
256
- * Make CPK work for Arel::Attributes::Attribute (Rick Xing)
257
- * Change autosave_association.rb so that association autosave can work (Rick Xing)
258
- * Fix exception when saving "other_ids=" with a has_many :through association where the source
259
- association is polymorphic (Tye Shavik)
260
- * Fix Arel::Nodes::In where left side is not a column (Tye Shavik)
261
-
262
- == 8.1.2 (2015-12-13)
263
-
264
- * Fix failing tests
265
-
266
- == 8.1.1 (2015-08-04)
267
-
268
- * Updates to make Travis CI green (Laust Rud Jacobsen)
269
- * Travis CI support (Laust Rud Jacobsen)
270
- * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
271
- for non-peristed objects (Charlie Savage)
272
- * Update support for Uniquenes validations (Avi Leavitt)
273
- * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
274
- * Aligned the establish connection paramater handling to be similar to latest version of rails (Harish Shetty)
275
-
276
-
277
- == 8.1.0 (2014-03-23)
278
-
279
- * ActiveRecord 4.2.1 support (Charlie Savage)
280
- * Change parsing of composite ids to fix #290 (Charlie Savage)
281
- * Add sqlserver setting for test suite (Joachim Herb)
282
- * Fix sqlserver adapater, isse #224 (Joachim Herb)
283
- * Update readme file to include version 8.* information (David Silva)
284
-
285
- == 8.0.1 (2014-01-24)
286
-
287
- * Support optimistic lock and lock_version added to existing fixtures (Kirika)
288
-
289
- == 8.0.0 (2014-01-10)
290
-
291
- * ActiveRecord 4.2.* support (Sammy Larbi)
292
-
293
- == 7.0.14 (2015-08-04)
294
-
295
- * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
296
- for non-peristed objects (Charlie Savage)
297
- * Update support for Uniquenes validations (Avi Leavitt)
298
- * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
299
-
300
- == 7.0.13 (2015-01-24)
301
-
302
- * Support optimistic lock and lock_version added to existing fixtures (Kirika)
303
- * README change to convey finding available versions (Aaron Bartell)
304
- * Fixes indentation in product_tariffs (Zaldabus)
305
-
306
- == 7.0.12 (2014-11-09)
307
-
308
- * ActiveRecord 4.1.7 support (Tom Hughes)
309
- * Extract CPK methods to its own module and extending instead of opening the singleton class
310
- which fixes Marshal#dump (Nicolás Hock Isaza)
311
-
312
- == 7.0.11 (2014-10-10)
313
-
314
- * ActiveRecord 4.1.6 support (Tom Hughes, Charlie Savage)
315
- * Verify MariaDB support and update docs (Isi Robayna)
316
- * Postgresql binary column support (Piotr Gębala)
317
- * Fix deleting of records from collection association (akeuk and Charlie Savage)
318
- * Fix invalid include (shiro16)
319
- * Improve tests (Yann Marquet)
320
-
321
- == 7.0.10 (2014-08-07)
322
-
323
- * Update attribute dirty methods to allow attribute *_was
324
- fields to be calculated correctly for enum fields (Zachary Salzbank)
325
- * Update read/write methods to match latest version of ActiveRecord (Charlie Savage)
326
-
327
- == 7.0.9 (2014-08-03)
328
-
329
- * Second attemp at fixing instantiation of has_many records via :includes that use composite keys - this
330
- time take into account no target records (Charlie Savage)
331
-
332
- == 7.0.8 (2014-08-03)
333
-
334
- * Fix instantiation of has_many records via :includes that use composite keys (Charlie Savage)
335
-
336
- == 7.0.7 (2014-07-29)
337
-
338
- * Add back support for calling find like this (Sammy Larbi):
339
-
340
- Membership.find('1,1')
341
-
342
- == 7.0.7 (2014-07-29)
343
-
344
- * Add back support for calling find like this (Sammy Larbi):
345
-
346
- Membership.find('1,1')
347
-
348
- == 7.0.6 (2014-07-22)
349
-
350
- * Change the way we override ActiveRecord::Persistence to call sequence of included modules such
351
- as callbacks (Charlie Savage)
352
-
353
- == 7.0.5 (2014-07-21)
354
-
355
- * Remove overriden Postgresql adapter code (Charlie Savage)
356
-
357
- == 7.0.4 (2014-07-09)
358
-
359
- * Fix overriding of Relation#where_values_hash (Pavel)
360
- * Add travis CI support (Pavel)
361
- * Run AR's original relation_for_destroy when primary key is not composite (Pavel)
362
-
363
- == 7.0.3 (2014-07-04)
364
-
365
- * Fixes for Rails 4.1.2+ compatibility (Tom Hughes)
366
- * Nested attribute fix (Sammy Larb)
367
- * Test fixes (Sammy Larb)
368
- * Fixes instantiating join records (Charlie Savage)
369
-
370
- == 7.0.2 (2014-06-01)
371
-
372
- * Fix id_was when one of the column names is called id (Adrian Hooper)
373
- * Fix queries that use ActiveRecord objects in the where clause (Adrian Hooper)
374
-
375
- == 7.0.1 (2014-05-27)
376
-
377
- * Fix setting of timestamps automatically by Rails (Charlie Savage)
378
-
379
- == 7.0.0 (2014-05-26)
380
-
381
- * Active Record 4.1 support! (Charlie Savage, Tom Hughes, Simon South)
382
-
383
- Note there is one big api change. Previously, CPK supported both of these calls:
384
-
385
- Membership.find(1,1)
386
- Membership.find([1,1])
387
-
388
- The first one no longer works. It was removed because it made the internal code simpler
389
- and makes the intention of the code clearer (especially when finding multiple records).
390
- If this change causes too much pain then please submit a ticket on Github.
391
-
392
- == 6.0.08 (2015-01-24)
393
-
394
- * Fix habtm association #delete_records (Uros Jurglic)
395
- * Support optimistic locking (Toshio Maki)
396
- * Remove singleton classes on CPK relations (Nicolás Hock Isaza)
397
-
398
- == 6.0.7 (2014-10-06)
399
-
400
- * Support Rails 4.0.6 (Tom Hughes)
401
-
402
- == 6.0.6 (2014-05-26)
403
-
404
- * Don't refer to deprecated set_primary_keys in README (Henare Degan)
405
- * Fix gemspec dependency (Charlie Savage)
406
-
407
- == 6.0.5 (2014-05-20)
408
-
409
- * Removed debugging output (Dan Draper)
410
- * Fixes to ensure that has_one associations work correctly (Dan Draper)
411
- * Fix postgres db migration failure since no result is returned in some cases (seashell-qd)
412
- * Fix exception raised in method "id=" (seashell.qd@hotmail.com)
413
-
414
- == 6.0.3 (2014-04-28)
415
-
416
- * Fixes setting of primary key when CPK is not used for a given model (see #191)
417
-
418
- == 6.0.2 (2014-04-28)
419
-
420
- * Fixes relating to ActiveRecord 4.0.x compatibility (Dan Draper)
421
- * Ensure that primary key is set on instance when creating new records (Dan Draper)
422
-
423
- == 6.0.1 (2013-11-29)
424
-
425
- * Handle records == :all in HasManyAssociation#delete_records. Without this calling
426
- delete or clear on a has_many assocation can result in an exception (Tom Hughes)
427
- * Don't include cpk key as an attributes - fixes json serialization - #168 (Charlie Savage)
428
- * Fix tests running on ruby 1.9.3 (Charlie Savage)
429
- * Update nested_attributes to work with activerecord 4.0.x (Nick DeLuca)
430
-
431
- == 6.0.0 (2013-08-04)
432
- * ActiveRecord 4.0 support (Sammy Larbi)
433
-
434
- == 5.0.13 2013-04-27
435
- * Batch query improvements (Jordan Byron)
436
- * Support nested attributes (aiasfina and Charlie Savage)
437
-
438
- == 5.0.12 2013-01-21
439
- * Fix HasManyAssociation foreign_key_present? method to work with non CPK assocations (Charlie Savage)
440
-
441
- == 5.0.11 2013-01-19
442
- * Patch HasManyAssociation foreign_key_present? method to work with array of keys (tbeauvais)
443
- * Patch reverse_sql_order method to break apart CPKs (tbeauvais)
444
- * Add test and fix for nested_attributes update (Dinshaw Gobhai)
445
- * Add test and fix for to_sym exception (Dinshaw Gobhai)
446
- * Add missing timestamp columns for mysql test_touch.rb (Dinshaw Gobhai)
447
-
448
- == 5.0.10 2012-11-21
449
- * ActiveRecord 3.2.9 compatability (Tom Hughes, Chris Heald, Jack Tang)
450
- * Add support for find_in_batches (Charlie Savage)
451
- * Add support for touch method (Macario Ortega)
452
- * Remove symbolized representation of primary keys to be consistent with ActiveRecord (Tiago Cardoso)
453
- * Update destroy method to use hash of primary keys over an array. This allows the proper SQL
454
- (using IS NULL) to be generated when one of the primary key attributes is nil (Scott Hunter).
455
-
456
- == 5.0.9 2012-09-29
457
- * Enable tests for MS SQL Servder (Enderson Maia)
458
- * Update ActiveRecord::Base#initialize_dup override in line with ActiveRecord::Base 3.2.5+ (Lucas Maxwell)
459
- * Require postgresql_adapter.rb also when using activerecord-postgis-adapter (Torsti Schulz)
460
- * Make cpk_in_predicate build a simple IN when possible (Tom Hughes)
461
- * Fixed problem loading jdbcpostgresql adapter (Troy Caldwell)
462
- * Add support for counter cache (Charlie Savage)
463
- * Fix recreating postgresql database (Charlie Savage)
464
- * Update dependency to ActiveRecord 3.2.8 or higher (Charlie Savage)
465
-
466
- == 5.0.8 2012-07-01
467
- * Enabled tests for MS SQL Server (Enderson Maia)
468
- * Update establish_connection to work with Rails 3.2.6 (Ivan Schneider)
469
- * Fix typos in rake tasks names in README_tests.rdoc (Ivan Schneider)
470
- * Fix problem with deleting non-CPK in Rails 3.2.5 (Sammy Larbi)
471
- * Fixes relationship deletion for HABTM in Rails when it passes :all flag instead of
472
- an array of IDs. Also adds new tests and test fixtures (Sammy Larbi)
473
- * Change mysql db creation to execute one statement each time, since in some setups
474
- it will not run multiple statements (Sammy Larbi)
475
- * Fix multiple assignments to same column due to duplicate keys in @changed_attributes.
476
- Includes test fixes (Jan Vlnas)
477
-
478
- == 5.0.7 2012-06-03
479
- * Fixed bug where validates_uniqueness failed for 3 or more primary keys. (Charlie Savage)
480
-
481
- == 5.0.6 2012-05-20
482
- * Fixed bug where setting a belongs_to association to nil would raise an error (Tyler Rick)
483
- * Remove special case code for 1 column selects and just choose to use Rails version of the
484
- method unless we need ours to deal with an Array (Sammy Larbi)
485
- * Change count tests to actually check for distinct, fix resulting error it
486
- demonstrated in the code (Sammy Larbi)
487
- * Specify mysql2 driver by default (Charlie Savage)
488
- * Update sqlite tests to run on Windows (Charlie Savage)
489
-
490
- == 5.0.5 2012-05-05
491
- * Count without slower subquery in cases where that is possible (Sammy Larbi)
492
- * When you call association.build for a has_many association that uses a
493
- composite foreign key, the newly built child record should have the values
494
- in its belongs_to foreign_key populated from its owner's values (Tyler Rick).
495
- * Removed test_has_many_with_primary_key method that wasn't being used because
496
- another method by the same name was defined below it (Tyler Rick).
497
- * Fixed a bug that was causing object.changes to raise TypeError (Tyler Rick)
498
- * Fix error when running rake mysql:rebuild_databases (Tyler Rick)
499
- * to_param should join with comma instead of minus sign (Tsutomu Kuroda)
500
- * Fix the "Factories" section of README.rdoc (Tsutomu Kuroda)
501
-
502
- == 5.0.4 2012-03-23
503
- * Update ActiveRecord::AttributeMethods#Write for Rails 3.2.2 (Travis Warlick)
504
-
505
- == 5.0.4 2012-03-23
506
- * Yanked
507
-
508
- == 5.0.2 2012-03-16
509
- * Use .rdoc extension on RDoc files (Elia Schito)
510
- * Update documentation to use self.primary_keys instead of set_primary_keys (Miguel Fonseca)
511
- * Added tests for comparing composite ids (Jim Jones)
512
- * Updating the README for clarity (Brett Fishman)
513
- * Fix method signature mismatch with active_record (Miguel Fonseca)
514
- * Fix ref in README (Elia Schito)
515
- * Add test for habm create (Charlie Savage)
516
-
517
- == 5.0.1 2012-02-13
518
- * Fix deprecation warning that was exactly backwards (Tom Hughes)
519
- * Fix primary_keys handling in models that inherit from other models
520
- but don't redefine their primary_key. Problem was the inherited
521
- models didn't correctly reference their parents primary_keys (Charlie Savage)
522
-
523
- == 5.0.0 2012-02-12
524
- * Fix tests so they pass on MySql (Charlie Savage)
525
- * Fix calculations to work with duplicate column names (cleesmith)
526
- * Switch rake tasks for Postgresql and MySql to use ActiveRecord API for
527
- creating and dropping databases (Charlie Savage)
528
- * Follow AR 3.2 lead and introduce self.primary_keys and deprecate set_primary_keys (Charlie Savage)
529
- * Switch from set_primary_key to self.primary_key= to avoid Rails deprecation (Charlie Savage)
530
- * Fix issue when using multiple database connections (David Doan)
531
- * Fix homepage in gemspec and remove email address (Charlie Savage)
532
- * Add support for string keys to exists? (Jan Vlnas)
533
- * Fix typo (Jason Karns)
534
-
535
- == 5.0.0.rc1 2012-01-16
536
- * ActiveRecord 3.2 support
537
-
538
- == 4.1.2 2012-01-12
539
- * Helper to allow the same tests to be used for both Oracle and other DBs
540
- by replacing quoted identifiers with all-caps equivalents on Oracle (Rhett Sutphin)
541
- * Update Oracle tests (Rhett Sutphin)
542
-
543
- == 4.1.1 2011-08-31
544
- * Support for AR 3.1.1
545
- * Make polymorphic belongs_to work in rails 3.1.1 (Tom Hughes)
546
- * Eliminate relative paths from the test suite (Rhett Sutphin)
547
- * Minor improvements to the CPK test runner w/o relative path changes (Rhett Sutphin)
548
- * Remove stray puts (Rhett Sutphin)
549
- * Allow AR logs to go to a file when running tests. This commit allows you to
550
- specify a file to use instead via the CPK_LOGFILE environment variable.
551
- STDOUT is still the default. (Rhett Sutphin)
552
- * Use ADAPTER env variable to select database to test. For example:
553
-
554
- ADAPTER=sqlite3 ruby test/test_suite.rb
555
- (Rhett Sutphin)
556
-
557
- * Eliminate constant redef warnings during test runs (Rhett Sutphin)
558
- * Add missing fixture declarations (Rhett Sutphin)
559
- * Standardize on integer PKs in polymorphic fixtures (Rhett Sutphin)
560
- * Fix tiny file name typos (Buck)
561
-
562
- == 4.0.0 2011-08-31
563
- * Support for AR 3.1
564
-
565
- == 4.0.0.beta9 2011-08-22
566
- * Fix eager-loading in AR 3.1.rc6.
567
-
568
- == 4.0.0.beta9 2011-082-22
569
- * Fix eager-loading in AR 3.1.rc6.
570
-
571
- == 4.0.0.beta8 2011-082-22
572
- * Sqlite 3 fixes (Jan Vlnas)
573
- * Fixes for to_key method (Jan Vlnas)
574
- * Compatible with Rails 3.1 RC6 (Ari Epstein, Travis Warlick)
575
-
576
- == 4.0.0.beta7 2011-07-26
577
- * Compatible with Rails 3.1 RC5 (TycoooN)
578
- * Do not use Arel::Nodes::Or to combine predicates because it creates a
579
- deeply nested stack that blows up.
580
-
581
- == 4.0.0.beta4 2011-07-22
582
- * Compatible with Rails 3.1 stable branch. No longer works with RC4 (Charlie Savage)
583
- * Do not require loading of postgresql gem unless needed (Charlie Savage)
584
-
585
- == 4.0.0.beta3 2011-07-08
586
- * Fix the ability to update the values of a primary key (Travis Warlick)
587
- * Support port and host configurations for postgres rake tasks (Travis Warlick)
588
-
589
- == 4.0.0.beta2 2011-06-21
590
- * ActiveRecord 3.1 RC4 compatibility.
591
- * Fix instantiation of CPK models with included associations
592
-
593
- == 4.0.0.beta1 2011-06-09
594
- * ActiveRecord 3.1 RC1 compatibility. This required a significant rewrite due to
595
- all the changes in AR 3.1 versus 3.0.
596
-
597
- == 3.1.11 2012-05-20
598
- Fix AssociationReflection#derive_primary_key for belongs_to relationships (Heinrich Lee Yu).
599
-
600
- == 3.1.10 2011-07-08
601
- * Bugfix for belongs_to with includes (John Ash)
602
- * Improved tests for calling clear on a habtm association, which involved (David Rueck)
603
- * Fixed bug that resulted in unrelated records being deleted when calling (David Rueck)
604
- * Output deprecation warnings about extra columns in join table CPK-aware (David Rueck)
605
-
606
-
607
- == 3.1.9 2011-06-04
608
- * Improve HABTM association tests (David Rueck)
609
- * Remove deprecated Rake tasks (Charlie Savage)
610
-
611
- == 3.1.8 2011-05-26
612
- * Fix calling clear on a HABTM associate (David Rueck)
613
-
614
- == 3.1.7 2011-05-26
615
- * Support regular AR models having one or many composite models (Jacques Fuentes)
616
- * Minor test cleanup (Charlie Savage)
617
- * Make version requirements more explicit (Charlie Savage)
618
- * Remove Arel extensions used for calculations (Charlie Savage)
619
- * Fix test that included wrong error constant
620
-
621
- == 3.1.6 2011-04-03
622
- * Updated belongs_to association to be a bit more flexible with non-CPK (Charlie Savage)
623
- base models (Jacques Fuentes)
624
- * Fix uniqueness check (David Rueck)
625
- * Fix write issue when one of they keys in a composite key is
626
- called id (Tom Hughes)
627
-
628
-
629
- == 3.1.5 2011-03-24
630
- * Fix simple calculation methods (Charlie Savage)
631
- * Fix instantiation of cpk records via associations (Charlie Savage)
632
- * Fix Relation#delete (Charlie Savage)
633
- * Fix Relation#destroy (Charlie Savage)
634
-
635
-
636
- == 3.1.4 2011-03-06
637
- * Support ActiveRecord 3.0.5 - interpolate_sql was removed and
638
- replaced by interpolate_and_sanitize_sql (Charlie Savage)
639
- * Fix persistence methods to support destroy callbacks (Charlie Savage)
640
- * Support rake 0.9.0 beta (Charlie Savage)
641
-
642
-
643
- == 3.1.2 2011-02-26
644
- * Add back in support for find('3,3') which makes it possible to
645
- do find(params[id]). This implementation is simpler than earlier version
646
- improving code readability.
647
- * Support for finding multiple records either via find([1,2], [3,4])
648
- * Remove to_composite_ids method which is no longer needed
649
-
650
-
651
- == 3.1.1 2011-02-07
652
- * Implement id_before_type_cast (Jason Lewis)
653
- * Add in tests for Model.includes(:other_model)
654
- * Fix object comparison with nil in composite primary keys (StackNG)
655
- * Make it easier to run tests with different database adapters (Toby Cabot)
656
- * Fix AssociationReflection#primary_key_name for polymorphic relationships (Dave Doan)
657
-
658
-
659
- == 3.1.0 2010-12-17
660
- * Add back in rake test tasks (Toby Cabot)
661
- * Add support for multiple string composite keys (wouter)
662
- * Remove support for find('3,3'). Instead use find([3,3])
663
-
664
-
665
- == 3.0.9 2010-12-04
666
- * Fix up support for composite key fixtures.
667
-
668
-
669
- == 3.0.8 2010-12-04
670
- * Fix for translation issue in unique validation. Thanks to Daniel Berger for the patch.
671
- * Fix to support child classes of composite primary key models
672
-
673
-
674
- == 3.0.7 2010-11-29
675
- * Fix has and belongs to many associations implementation.
676
-
677
-
678
- == 3.0.6 2010-11-29 (yanked)
679
- * Add full support for has and belongs to many associations.
680
-
681
-
682
- == 3.0.5 2010-11-28 (yanked)
683
- * Apply patch from Marian Rudzynski for fixing up attribute_methods/primary_key
684
- * Apply patch from Toby Cabot to fix up various sqlite3 issues
685
- * Add partial support for has and belongs to many associations. Currently a cpk model
686
- can have a habtm, but a normal model cannot have a habtm to a cpk model (its actually
687
- not too hard to add, but one step at a time...)
688
-
689
-
690
- == 3.0.4 2010-11-21
691
- * Support deleting records when dependent is set to :delete_all
692
- * Switch the method #id to return a CompositeKeys instance (thus going back to how
693
- this was done in previous CPK versions)
694
-
695
-
696
- == 3.0.3 2010-11-19
697
- * Support ActiveRecord 3.0.3 and Arel 2+
698
- * Require ActiveRecord 3.0.3 as minimum dependency
699
- * Fix double quoting issue with table names - thanks to Kevin Motschiedler for a patch.
700
- * Fix SQLiteAdapter class inheritance issue - thanks to Brandon Hauff for a patch.
701
-
702
-
703
- == 3.0.1.b3 2010-11-07
704
-
705
- * Fix bug in joining to :has_one association
706
- * Added support for Model.find(:last)
707
- * Added support for finding via associations with
708
- limited ids. For example find(:include => :foo, :limit => 1)
709
-
710
- == 3.0.1.b2 2010-11-06
711
-
712
- * Port to Rails 3.0 and Ruby 1.9.2
713
-
714
- * Backwards compatability issues
715
- + You can no longer define a composite primary key with a single field. If you
716
- try, your model will just default to a standard active record model. Removing
717
- this corner case simplified the code.
718
- + Removed CompositePrimaryKeys::CompositeKeys. This was done so that the #to_s
719
- method on composite ids, such as [1,2], returns "[1, 2]". This in turns
720
- reduces the amount of core Rails code that needs to be overridden.
721
- + Setting attribute values by string is no longer supported. For example, this
722
- no longer works:
723
- my_record[[:main_id, :secondary_id]] = '1,2'
724
- Instead, do this:
725
- my_record[[:main_id, :secondary_id]] = [1,2]
726
- Once again, this was done to reduce the amount of overridden Rails code
727
- + At the moment, complex finds with nested arrays do not work. For example
728
- find([[1,2], [3,4]))
729
- + Count methods no longer work. For example, Tariff.count(:include => :product_tariffs)
730
- in the TestAssociations#test_count test returns an error. This is because Rails 3.0
731
- uses Arel to perform such calculations, and its not obvious (at least to me) how to
732
- hook into this new mechanism to support tables with composite keys.
733
- + The TestPolymorphic#test_polymorphic_has_many_through is currently failing, but this
734
- looks like an ActiveRecord 3.0 bug to me.
735
-
736
- == 2.3.5.1 2010-02-13
737
-
738
- * Resolved "warning: already initialized constant HasManyThroughCantAssociateThroughHasManyReflection" [Titi Ala'ilima]
739
-
740
- == 2.3.5 2009-12-16
741
-
742
- * Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]
743
-
744
- == 2.3.2 2009-07-16
745
-
746
- * explicitly load associations.rb due to some getting an unitialized constant error
747
-
748
- == 2.3.2 2009-05-28
749
-
750
- * get tests working again with AR 2.3.2
751
-
752
- == 2.2.1 2009-01-21
753
-
754
- * fix ActiveRecord#exists? to work when passing conditions instead of ids
755
-
756
- == 2.2.0 2008-10-29
757
-
758
- * Rails 2.2.0 compatibility
759
-
760
- == 1.1.0 2008-10-29
761
-
762
- * fixes to get cpk working for Rails 2.1.2
763
-
764
- == 1.0.10 2008-10-22
765
-
766
- * add composite key where clause creator method [timurv]
767
-
768
- == 1.0.9 2008-09-08
769
-
770
- * fix postgres tests
771
- * fix for delete_records when has_many association has composite keys [darxriggs]
772
- * more consistent table/column name quoting [pbrant]
773
-
774
- == 1.0.8 2008-08-27
775
-
776
- * fix has_many :through for non composite models [thx rcarver]
777
-
778
- == 1.0.7 2008-08-12
779
-
780
- * fix for the last fix -- when has_many is composite and belongs_to is single
781
-
782
- == 1.0.6 2008-08-06
783
-
784
- * fix associations create
785
-
786
- == 1.0.5 2008-07-25
787
-
788
- * fix for calculations with a group by clause [thx Sirius Black]
789
-
790
- == 1.0.4 2008-07-15
791
-
792
- * support for oracle_enhanced adapter [thx Raimonds Simanovskis]
793
-
794
- == 1.0.3 2008-07-13
795
-
796
- * more fixes and tests for has many through [thx Menno van der Sman]
797
-
798
- == 1.0.2 2008-06-07
799
-
800
- * fix for has many through when through association has composite keys
801
-
802
- == 1.0.1 2008-06-06
803
-
804
- * Oracle fixes
805
-
806
- == 1.0.0 2008-06-05
807
-
808
- * Support for Rails 2.1
809
-
810
- == 0.9.93 2008-06-01
811
-
812
- * set fixed dependency on activerecord 2.0.2
813
-
814
- == 0.9.92 2008-02-22
815
-
816
- * Support for has_and_belongs_to_many
817
-
818
- == 0.9.91 2008-01-27
819
-
820
- * Incremented activerecord dependency to 2.0.2 [thx emmanuel.pirsch]
821
-
822
- == 0.9.90 2008-01-27
823
-
824
- * Trial release for rails/activerecord 2.0.2 supported
825
-
826
- == 0.9.1 2007-10-28
827
-
828
- * Migrations fix - allow :primary_key => [:name] to work [no unit test] [thx Shugo Maeda]
829
-
830
- == 0.9.0 2007-09-28
831
-
832
- * Added support for polymorphs [thx nerdrew]
833
- * init.rb file so gem can be installed as a plugin for Rails [thx nerdrew]
834
- * Added ibm_db support [thx K Venkatasubramaniyan]
835
- * Support for cleaning dependents [thx K Venkatasubramaniyan]
836
- * Rafactored db rake tasks into namespaces
837
- * Added namespaced tests (e.g. mysql:test for test_mysql)
838
-
839
- == 0.8.6 / 2007-6-12
840
-
841
- * 1 emergency fix due to Rails Core change
842
- * Rails v7004 removed #quote; fixed with connection.quote_column_name [thx nerdrew]
843
-
844
- == 0.8.5 / 2007-6-5
845
-
846
- * 1 change due to Rails Core change
847
- * Can no longer use RAILS_CONNECTION_ADAPTERS from Rails core
848
- * 7 dev improvement:
849
- * Changed History.txt syntax to rdoc format
850
- * Added deploy tasks
851
- * Removed CHANGELOG + migrated into History.txt
852
- * Changed PKG_NAME -> GEM_NAME in Rakefile
853
- * Renamed README -> README.txt for :publish_docs task
854
- * Added :check_version task
855
- * VER => VERS in rakefile
856
- * 1 website improvement:
857
- * website/index.txt includes link to "8 steps to fix other ppls code"
858
-
859
- == 0.8.4 / 2007-5-3
860
-
861
- * 1 bugfix
862
- * Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
863
-
864
- == 0.8.3 / 2007-5-3
865
-
866
- * 1 bugfix
867
- * Explicit reference to ::ActiveRecord::RecordNotFound
868
- * 1 website addition:
869
- * Added routing help [Pete Sumskas]
870
-
871
- == 0.8.2 / 2007-4-11
872
-
873
- * 1 major enhancement:
874
- * Oracle unit tests!! [Darrin Holst]
875
- * And they work too
876
-
877
- == 0.8.1 / 2007-4-10
878
-
879
- * 1 bug fix:
880
- * Fixed the distinct(count) for oracle (removed 'as')
881
-
882
- == 0.8.0 / 2007-4-6
883
-
884
- * 1 major enhancement:
885
- * Support for calcualtions on associations
886
- * 2 new DB supported:
887
- * Tests run on sqlite
888
- * Tests run on postgresql
889
- * History.txt to keep track of changes like these
890
- * Using Hoe for Rakefile
891
- * Website generator rake tasks
892
-
893
- == 0.3.3
894
- * id=
895
- * create now work
896
-
897
- == 0.1.4
898
- * it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class
899
-
900
- == 0.0.1
901
- * Initial version
902
- * set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
903
- * find(*ids) supports the passing of
904
- * id sets: Foo.find(2,1),
905
- * lists of id sets: Foo.find([2,1], [7,3], [8,12]),
906
- * and even stringified versions of the above:
907
- * Foo.find '2,1' or Foo.find '2,1;7,3'
1
+ == 13.0.8 (2023-11-24)
2
+ Fix `polymorphic_name` support (Vladimir Kochnev)
3
+
4
+ == 13.0.7 (2023-02-04)
5
+ * Fix #573 (Charlie Savage)
6
+
7
+ == 13.0.6 (2023-02-04)
8
+ * Fix #577 (Charlie Savage)
9
+
10
+ == 13.0.5 (2023-02-04)
11
+ * Improve query generation for cpk_in_predicate. This reduces the length of
12
+ queries when loading many keys and enables Postgres to use index scans
13
+ more frequently. (Andrew Kiellor)
14
+
15
+ == 13.0.4 (2022-12-05)
16
+ * Fix previously_new_record? not being set to true after create
17
+
18
+ == 13.0.3 (2022-01-09)
19
+ * Remove override on ActiveRecord::Base#to_param. That method has moved to Integration
20
+ so no longer works. #541. (Charlie Savage)
21
+ * Check if an assocation is polymorhpic. Fixes #558.
22
+
23
+ == 13.0.2 (2022-01-09)
24
+ * Fix scoped associations take #2 (Charlie Savage)
25
+
26
+ == 13.0.1 (2021-11-14)
27
+ * Fix invalid sql generation for some cases of scoped associations (Ryan Mulligan)
28
+ * Fix unintentional connection to database (Kazuhiro Masuda)
29
+ * Zip values then keys - fixes #548 (Charlie Savage)
30
+
31
+ == 13.0.0 (2021-05-09)
32
+ * Update to ActiveRecord 6.1 (Javier Julio, Charlie Savage, Sammy Larbi)
33
+
34
+ == 12.0.10 (2021-05-09)
35
+ * Support using the #id method on records with primary keys that also have an :id attribute.
36
+
37
+ == 12.0.9 (2021-02-22)
38
+ * Third time is hopefully the charm on MySQL/MariaDB auto increment fix
39
+
40
+ == 12.0.8 (2021-02-16)
41
+ * Revert to previous MySQL/MariaDB auto increment fix
42
+
43
+ == 12.0.7 (2021-02-15)
44
+ * Switch to GitHub actions (ta1kt0me)
45
+ * Fix MySQL/MariaDB query cache issue bug introduced in version 12.0.3 - see #539 (Charlie Savage)
46
+ * Do a better job of supporting composite keys with an auto incrementing field for
47
+ MySQL and MariaDB (Charlie Savage)
48
+
49
+ == 12.0.6 (2021-01-04)
50
+ * Fix issue when calling in_batches without a block (Charlie Savage)
51
+
52
+ == 12.0.5 (2020-12-31)
53
+ * Finally issue with SQLServer when tables are marked as exclude_output_inserted. See #535. (Charlie Savage)
54
+
55
+ == 12.0.4 (2020-12-30)
56
+ * Fix compatibility with Ruby Ruby 2.6 and below (ta1kt0me)
57
+ * Finally get SQLServer mass updates and deletes working (Charlie Savage)
58
+ * Fix MySQL mass updates and deletes that were broken by 12.0.3 (Charlie Savage)
59
+
60
+ == 12.0.3 (2020-11-11)
61
+ * Prevents infinite loops with gems which modify the 'attributes' method (Nicholas Guarino)
62
+ * Improve delete_all and update_all queries (Charlie Savage)
63
+ * Improve Oracle support (Charlie Savage)
64
+ * Improve SQL Server support. Note delete_all and update_all queries still do not work due to
65
+ quirks in SQL Server syntax (Charlie Savage)
66
+ * Improve support for polymorphic associations (Charlie Savage)
67
+ * Update fixtures and tests to include a model that uses an :id column as part of a composite
68
+ key (Charlie Savage)
69
+ * Fixed bug where id values were not correctly mapped between primary and foreign keys in associations (Charlie Savage)
70
+ * Cleanup how the gem is loaded (Charlie Savage)
71
+ * Remove older, unused or minimally used fixtures (Charlie Savage)
72
+
73
+ == 12.0.2 (2020-05-19)
74
+ * Remove deprecation warning for Ruby 2.7 due to keyword parameters (Alexandru Anca )
75
+ * Use sqlite for default in tests (Charlie Savage)
76
+ * Modernize gem tests by using Bundler (Charlie Savage)
77
+ * Update travis for ruby 2.7 (Charlie Savage)
78
+ * Port "Fix create record where one or more of the primary keys has a default value" from ar 5.2 branch (Charlie Savage)
79
+ * Remove extra argument from sql_for_insert for SqlServer (tohae)
80
+
81
+ == 12.0.1 (2019-11-25)
82
+ * Convert attribute names to strings before checking for them in has_attribute? (Daniel de Haas)
83
+ * Update the comment referring to the overridden Rails code (Daniel de Haas)
84
+
85
+ == 12.0.0 (2019-09-03)
86
+ * Update to ActiveRecord 6.0 (Hiroshi Kajisha, Alexandru Anca, Charlie Savage, Sammy Larbi)
87
+ * Update travis setup (Olle Jonsson, Charlie Savage)
88
+
89
+ ==11.3.1 (2020-04-01)¶
90
+ * Fix overriding AbstractReflection for activerecord 5.2.4 (Sergey Semyonov)
91
+ * Fix handling CPK with fields containing comma (Sergey Semyonov)
92
+ * Fixed incorrect SQL condition for joining by CPK (Sergey Semyonov)
93
+ * Update travis.yml file (Sergey Semyonov)
94
+ * Add tests for composite keys with default values (Daniel Wiklund)
95
+ * Fix create record where one or more of the primary keys has a default value (Daniel Wiklund)
96
+
97
+ == 11.2.0 (2019-03-16)
98
+ * When creating new records, honor composite key autoincrementing fields if possible (Antti Pitkänen)
99
+ * Update Association#run to more closely match ActiveRecord (Fabian Mersch)
100
+ * Updates needed due to changes in ActiveRecord (Sammy Larbi)
101
+ * Fix construct_join_attributes method (Brad Slaughter)
102
+ * Fix destroy_all on HABTM (Brad Slaughter)
103
+
104
+ == 11.1.0 (2018-11-14)
105
+ * Support ActiveRecord 5.2.1 (S1Artem Tselovalnikov, Caleb Buxton, Charlie Savage)
106
+ * Fix counter cache (Tomonori Murakami)
107
+ * Fix error on autosave has_one relations when the :primary_key option is set (Charlie Savage)
108
+
109
+ == 11.0.3 (2018-06-25)
110
+ * Fix overridden attribute readers and writers (Charlie Savage)
111
+
112
+ == 11.0.2 (2018-06-24)
113
+ * Remove no longer needed overrides (Charlie Savage)
114
+
115
+ == 11.0.1 (2018-06-20)
116
+ * Fix in_batches (Urmo Rae)
117
+ * Fix apply_join_dependency (Charlie Savage)
118
+
119
+ == 11.0.0 (2018-06-18)
120
+ * Update to ActiveRecord 5.2 (Charlie Savage)
121
+ * Fixes for AR 5.2 persistence changes (Erik Rothoff, Charlie Savage)
122
+ * Fix system stack error (i2bskn)
123
+
124
+ == 11.0.0.rc2 (2018-02-25)
125
+
126
+ * Fix mysql deletion failure (Charlie Savage)
127
+ * Clean test run for postgresql, mysql and sqlite3 (Charlie Savage)
128
+
129
+ == 11.0.0.rc1 (2018-02-25)
130
+
131
+ * Update to ActiveRecord 5.2.rc1 (Charlie Savage)
132
+ * Fix uniquness check (Charlie Savage)
133
+
134
+ == 11.0.0.beta4 (2018-01-08)
135
+
136
+ * Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
137
+
138
+ == 11.0.0.beta3 (2018-01-07)
139
+
140
+ * Fix typo in Readme.doc (Lopez Lucien)
141
+ * Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
142
+
143
+ == 11.0.0.beta2 (2017-12-10)
144
+
145
+ * Minor updates for ActiveRecord 5.2.beta2 support (Charlie Savage)
146
+
147
+ == 11.0.0.beta1 (2017-12-03)
148
+
149
+ * ActiveRecord 5.2.beta2 support (Charlie Savage)
150
+
151
+ == 10.0.5 (2018-06-24)
152
+ * Fix in_batches (Urmo Rae)
153
+
154
+ == 10.0.4 (2018-06-17)
155
+
156
+ * Lock mysql2 gem to 0.4.x (Le Trung Kien)
157
+ * Set inversion when using preload (Le Trung Kien)
158
+ * Fixes for AR 5.1.6 (Tim Morgan)
159
+
160
+ == 10.0.3 (2018-02-25)
161
+
162
+ * Require a minimum of activerecord version 5.1.5 (Tom Hughes)
163
+
164
+ == 10.0.2 (2017-12-02)
165
+
166
+ * Fix frozen string mutation for mysql (Sergey Sein)
167
+ * Fix autosave for belongs_to associations (Fabian Mersch)
168
+ * Require a minimum of activerecord version 5.1.4 (Charlie Savage)
169
+
170
+ == 10.0.1 (2017-10-08)
171
+
172
+ * Fixed an error that happened when a table attribute had the same name as the table (Taishi Kasuga)
173
+
174
+ == 10.0.0 (2017-10-08)
175
+
176
+ * Support ActiveRecord 5.1.x (Pinak Thakkar, Jordan Owens)
177
+ * Fix Paper Trail compatibility (Sean Linsley)
178
+ * Fix typo in Readme (Mike Gunderloy)
179
+ * Improved sql server support (Artyom Nikolaev)
180
+
181
+ == 9.0.10 (2018-06-24)
182
+
183
+ * Fix AR 5.0.7 (Jordan Owens)
184
+
185
+ == 9.0.8 (2017-10-11)
186
+
187
+ * Fix Paper Trail compatibility (Sean Linsley)
188
+
189
+ == 9.0.7 (2017-05-22)
190
+
191
+ * Update sqlite3 to support deletes and updates (Charlie Savage)
192
+ * Specify version for sql server gem so it works with Rails 5.0 (Charlie Savage)
193
+ * Use `datetime` datatype to address Invalid default value for updated_at (Yasuo Honda)
194
+ * Fix ORA-00900 error when it attempts to execute blank statement (pustomytnyk)
195
+ * Override ActiveRecord::Associations::CollectionAssociation#ids_reader (pustomytnyk)
196
+ * Only define #primary_keys if #primary_keys=(value) is called (Charlie Savage)
197
+ * Change `timestamp` to `datetime` for MySQL as ActiveRecord timestamps type does (Oriol Collel)
198
+ * Fix incorrect case statement to get PK for SQLServer (Oriol Collel)
199
+ * Fixes random failures in test_preload_of_polymorphic_association (Boris Peterbarg)
200
+
201
+ == 9.0.6 (2017-01-08)
202
+
203
+ * Uncomment tests (Sammy Larbi)
204
+ * Update readme (Charlie Savage)
205
+
206
+ == 9.0.5 (2017-01-02)
207
+
208
+ * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
209
+ * Simplify database setup for tests (Charlie Savage)
210
+ * Revamp gem management (Charlie Savage)
211
+ * Add support for Relation#update_all when using joins (Charlie Savage)
212
+ * Add erb support to test database.yml files (Charlie Savage)
213
+ * Sqlserver fixes for ordering (Charlie Savage)
214
+ * Sqlserver refresh (Charlie Savage)
215
+ * Oracle refresh (Charlie Savage)
216
+ * Fix delete_all for MySql (Charlie Savage)
217
+ * Added test cases for preloading associations with and without conditions (Martin Körner)
218
+ * Revamp single association handling to correctly setup SQL binds (Charlie Savage)
219
+ * Remove references to ActiveModel - #352 (Charlie Savage)
220
+ * Fixes for #232, #359, #367 and #371 (Charlie Savage)
221
+
222
+ == 9.0.4 (2016-08-17)
223
+ * Do not set associations to readonly. See https://github.com/rails/rails/issues/24093 (Charlie Savage)
224
+
225
+ == 9.0.2 (2016-08-10)
226
+ * Fix delete_all when used with a join (Charlie Savage)
227
+
228
+ == 9.0.1 (2016-07-27)
229
+ * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
230
+
231
+ == 9.0.0 (2016-07-06)
232
+ * Support connection_specification_name in rails5.0.0.rc1 (pocari)
233
+
234
+ == 9.0.0.beta1 (2016-04-16)
235
+ * Rails 5 beta support (Sammy Larbi)
236
+
237
+ == 8.1.7 (2019-05-04)
238
+
239
+ Fix key not being an array in subquery on has_many :through (Eric Proulx)
240
+ Convert batches to arrays before continuing loop (Jeremy Mickelson)
241
+
242
+ == 8.1.6 (2017-05-20)
243
+
244
+ Query cache with bind params (ttw)
245
+ Fix TestIds#test_set_ids_string. Sqlite's serial and integer are a bit different (Boris Peterbarg)
246
+ Associations with inverse fix (Boris Peterbarg)
247
+ Fix save_has_one_association and add a test for it (Boris Peterbarg)
248
+ Fix save_belongs_to_association override (Boris Peterbarg)
249
+ Extend approach from #344 to fix autosave for has_one associations as well (Cameron Finucane)
250
+
251
+ == 8.1.5 (2017-01-01)
252
+
253
+ * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
254
+
255
+ == 8.1.4 (2016-07-27)
256
+
257
+ * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
258
+ * Fix find in batches (apurvis)
259
+
260
+ == 8.1.3 (2016-04-16)
261
+
262
+ * Make CPK work for Arel::Attributes::Attribute (Rick Xing)
263
+ * Change autosave_association.rb so that association autosave can work (Rick Xing)
264
+ * Fix exception when saving "other_ids=" with a has_many :through association where the source
265
+ association is polymorphic (Tye Shavik)
266
+ * Fix Arel::Nodes::In where left side is not a column (Tye Shavik)
267
+
268
+ == 8.1.2 (2015-12-13)
269
+
270
+ * Fix failing tests
271
+
272
+ == 8.1.1 (2015-08-04)
273
+
274
+ * Updates to make Travis CI green (Laust Rud Jacobsen)
275
+ * Travis CI support (Laust Rud Jacobsen)
276
+ * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
277
+ for non-peristed objects (Charlie Savage)
278
+ * Update support for Uniquenes validations (Avi Leavitt)
279
+ * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
280
+ * Aligned the establish connection paramater handling to be similar to latest version of rails (Harish Shetty)
281
+
282
+
283
+ == 8.1.0 (2014-03-23)
284
+
285
+ * ActiveRecord 4.2.1 support (Charlie Savage)
286
+ * Change parsing of composite ids to fix #290 (Charlie Savage)
287
+ * Add sqlserver setting for test suite (Joachim Herb)
288
+ * Fix sqlserver adapater, isse #224 (Joachim Herb)
289
+ * Update readme file to include version 8.* information (David Silva)
290
+
291
+ == 8.0.1 (2014-01-24)
292
+
293
+ * Support optimistic lock and lock_version added to existing fixtures (Kirika)
294
+
295
+ == 8.0.0 (2014-01-10)
296
+
297
+ * ActiveRecord 4.2.* support (Sammy Larbi)
298
+
299
+ == 7.0.14 (2015-08-04)
300
+
301
+ * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
302
+ for non-peristed objects (Charlie Savage)
303
+ * Update support for Uniquenes validations (Avi Leavitt)
304
+ * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
305
+
306
+ == 7.0.13 (2015-01-24)
307
+
308
+ * Support optimistic lock and lock_version added to existing fixtures (Kirika)
309
+ * README change to convey finding available versions (Aaron Bartell)
310
+ * Fixes indentation in product_tariffs (Zaldabus)
311
+
312
+ == 7.0.12 (2014-11-09)
313
+
314
+ * ActiveRecord 4.1.7 support (Tom Hughes)
315
+ * Extract CPK methods to its own module and extending instead of opening the singleton class
316
+ which fixes Marshal#dump (Nicolás Hock Isaza)
317
+
318
+ == 7.0.11 (2014-10-10)
319
+
320
+ * ActiveRecord 4.1.6 support (Tom Hughes, Charlie Savage)
321
+ * Verify MariaDB support and update docs (Isi Robayna)
322
+ * Postgresql binary column support (Piotr Gębala)
323
+ * Fix deleting of records from collection association (akeuk and Charlie Savage)
324
+ * Fix invalid include (shiro16)
325
+ * Improve tests (Yann Marquet)
326
+
327
+ == 7.0.10 (2014-08-07)
328
+
329
+ * Update attribute dirty methods to allow attribute *_was
330
+ fields to be calculated correctly for enum fields (Zachary Salzbank)
331
+ * Update read/write methods to match latest version of ActiveRecord (Charlie Savage)
332
+
333
+ == 7.0.9 (2014-08-03)
334
+
335
+ * Second attemp at fixing instantiation of has_many records via :includes that use composite keys - this
336
+ time take into account no target records (Charlie Savage)
337
+
338
+ == 7.0.8 (2014-08-03)
339
+
340
+ * Fix instantiation of has_many records via :includes that use composite keys (Charlie Savage)
341
+
342
+ == 7.0.7 (2014-07-29)
343
+
344
+ * Add back support for calling find like this (Sammy Larbi):
345
+
346
+ Membership.find('1,1')
347
+
348
+ == 7.0.7 (2014-07-29)
349
+
350
+ * Add back support for calling find like this (Sammy Larbi):
351
+
352
+ Membership.find('1,1')
353
+
354
+ == 7.0.6 (2014-07-22)
355
+
356
+ * Change the way we override ActiveRecord::Persistence to call sequence of included modules such
357
+ as callbacks (Charlie Savage)
358
+
359
+ == 7.0.5 (2014-07-21)
360
+
361
+ * Remove overriden Postgresql adapter code (Charlie Savage)
362
+
363
+ == 7.0.4 (2014-07-09)
364
+
365
+ * Fix overriding of Relation#where_values_hash (Pavel)
366
+ * Add travis CI support (Pavel)
367
+ * Run AR's original relation_for_destroy when primary key is not composite (Pavel)
368
+
369
+ == 7.0.3 (2014-07-04)
370
+
371
+ * Fixes for Rails 4.1.2+ compatibility (Tom Hughes)
372
+ * Nested attribute fix (Sammy Larb)
373
+ * Test fixes (Sammy Larb)
374
+ * Fixes instantiating join records (Charlie Savage)
375
+
376
+ == 7.0.2 (2014-06-01)
377
+
378
+ * Fix id_was when one of the column names is called id (Adrian Hooper)
379
+ * Fix queries that use ActiveRecord objects in the where clause (Adrian Hooper)
380
+
381
+ == 7.0.1 (2014-05-27)
382
+
383
+ * Fix setting of timestamps automatically by Rails (Charlie Savage)
384
+
385
+ == 7.0.0 (2014-05-26)
386
+
387
+ * Active Record 4.1 support! (Charlie Savage, Tom Hughes, Simon South)
388
+
389
+ Note there is one big api change. Previously, CPK supported both of these calls:
390
+
391
+ Membership.find(1,1)
392
+ Membership.find([1,1])
393
+
394
+ The first one no longer works. It was removed because it made the internal code simpler
395
+ and makes the intention of the code clearer (especially when finding multiple records).
396
+ If this change causes too much pain then please submit a ticket on Github.
397
+
398
+ == 6.0.08 (2015-01-24)
399
+
400
+ * Fix habtm association #delete_records (Uros Jurglic)
401
+ * Support optimistic locking (Toshio Maki)
402
+ * Remove singleton classes on CPK relations (Nicolás Hock Isaza)
403
+
404
+ == 6.0.7 (2014-10-06)
405
+
406
+ * Support Rails 4.0.6 (Tom Hughes)
407
+
408
+ == 6.0.6 (2014-05-26)
409
+
410
+ * Don't refer to deprecated set_primary_keys in README (Henare Degan)
411
+ * Fix gemspec dependency (Charlie Savage)
412
+
413
+ == 6.0.5 (2014-05-20)
414
+
415
+ * Removed debugging output (Dan Draper)
416
+ * Fixes to ensure that has_one associations work correctly (Dan Draper)
417
+ * Fix postgres db migration failure since no result is returned in some cases (seashell-qd)
418
+ * Fix exception raised in method "id=" (seashell.qd@hotmail.com)
419
+
420
+ == 6.0.3 (2014-04-28)
421
+
422
+ * Fixes setting of primary key when CPK is not used for a given model (see #191)
423
+
424
+ == 6.0.2 (2014-04-28)
425
+
426
+ * Fixes relating to ActiveRecord 4.0.x compatibility (Dan Draper)
427
+ * Ensure that primary key is set on instance when creating new records (Dan Draper)
428
+
429
+ == 6.0.1 (2013-11-29)
430
+
431
+ * Handle records == :all in HasManyAssociation#delete_records. Without this calling
432
+ delete or clear on a has_many assocation can result in an exception (Tom Hughes)
433
+ * Don't include cpk key as an attributes - fixes json serialization - #168 (Charlie Savage)
434
+ * Fix tests running on ruby 1.9.3 (Charlie Savage)
435
+ * Update nested_attributes to work with activerecord 4.0.x (Nick DeLuca)
436
+
437
+ == 6.0.0 (2013-08-04)
438
+ * ActiveRecord 4.0 support (Sammy Larbi)
439
+
440
+ == 5.0.13 2013-04-27
441
+ * Batch query improvements (Jordan Byron)
442
+ * Support nested attributes (aiasfina and Charlie Savage)
443
+
444
+ == 5.0.12 2013-01-21
445
+ * Fix HasManyAssociation foreign_key_present? method to work with non CPK assocations (Charlie Savage)
446
+
447
+ == 5.0.11 2013-01-19
448
+ * Patch HasManyAssociation foreign_key_present? method to work with array of keys (tbeauvais)
449
+ * Patch reverse_sql_order method to break apart CPKs (tbeauvais)
450
+ * Add test and fix for nested_attributes update (Dinshaw Gobhai)
451
+ * Add test and fix for to_sym exception (Dinshaw Gobhai)
452
+ * Add missing timestamp columns for mysql test_touch.rb (Dinshaw Gobhai)
453
+
454
+ == 5.0.10 2012-11-21
455
+ * ActiveRecord 3.2.9 compatability (Tom Hughes, Chris Heald, Jack Tang)
456
+ * Add support for find_in_batches (Charlie Savage)
457
+ * Add support for touch method (Macario Ortega)
458
+ * Remove symbolized representation of primary keys to be consistent with ActiveRecord (Tiago Cardoso)
459
+ * Update destroy method to use hash of primary keys over an array. This allows the proper SQL
460
+ (using IS NULL) to be generated when one of the primary key attributes is nil (Scott Hunter).
461
+
462
+ == 5.0.9 2012-09-29
463
+ * Enable tests for MS SQL Servder (Enderson Maia)
464
+ * Update ActiveRecord::Base#initialize_dup override in line with ActiveRecord::Base 3.2.5+ (Lucas Maxwell)
465
+ * Require postgresql_adapter.rb also when using activerecord-postgis-adapter (Torsti Schulz)
466
+ * Make cpk_in_predicate build a simple IN when possible (Tom Hughes)
467
+ * Fixed problem loading jdbcpostgresql adapter (Troy Caldwell)
468
+ * Add support for counter cache (Charlie Savage)
469
+ * Fix recreating postgresql database (Charlie Savage)
470
+ * Update dependency to ActiveRecord 3.2.8 or higher (Charlie Savage)
471
+
472
+ == 5.0.8 2012-07-01
473
+ * Enabled tests for MS SQL Server (Enderson Maia)
474
+ * Update establish_connection to work with Rails 3.2.6 (Ivan Schneider)
475
+ * Fix typos in rake tasks names in README_tests.rdoc (Ivan Schneider)
476
+ * Fix problem with deleting non-CPK in Rails 3.2.5 (Sammy Larbi)
477
+ * Fixes relationship deletion for HABTM in Rails when it passes :all flag instead of
478
+ an array of IDs. Also adds new tests and test fixtures (Sammy Larbi)
479
+ * Change mysql db creation to execute one statement each time, since in some setups
480
+ it will not run multiple statements (Sammy Larbi)
481
+ * Fix multiple assignments to same column due to duplicate keys in @changed_attributes.
482
+ Includes test fixes (Jan Vlnas)
483
+
484
+ == 5.0.7 2012-06-03
485
+ * Fixed bug where validates_uniqueness failed for 3 or more primary keys. (Charlie Savage)
486
+
487
+ == 5.0.6 2012-05-20
488
+ * Fixed bug where setting a belongs_to association to nil would raise an error (Tyler Rick)
489
+ * Remove special case code for 1 column selects and just choose to use Rails version of the
490
+ method unless we need ours to deal with an Array (Sammy Larbi)
491
+ * Change count tests to actually check for distinct, fix resulting error it
492
+ demonstrated in the code (Sammy Larbi)
493
+ * Specify mysql2 driver by default (Charlie Savage)
494
+ * Update sqlite tests to run on Windows (Charlie Savage)
495
+
496
+ == 5.0.5 2012-05-05
497
+ * Count without slower subquery in cases where that is possible (Sammy Larbi)
498
+ * When you call association.build for a has_many association that uses a
499
+ composite foreign key, the newly built child record should have the values
500
+ in its belongs_to foreign_key populated from its owner's values (Tyler Rick).
501
+ * Removed test_has_many_with_primary_key method that wasn't being used because
502
+ another method by the same name was defined below it (Tyler Rick).
503
+ * Fixed a bug that was causing object.changes to raise TypeError (Tyler Rick)
504
+ * Fix error when running rake mysql:rebuild_databases (Tyler Rick)
505
+ * to_param should join with comma instead of minus sign (Tsutomu Kuroda)
506
+ * Fix the "Factories" section of README.rdoc (Tsutomu Kuroda)
507
+
508
+ == 5.0.4 2012-03-23
509
+ * Update ActiveRecord::AttributeMethods#Write for Rails 3.2.2 (Travis Warlick)
510
+
511
+ == 5.0.4 2012-03-23
512
+ * Yanked
513
+
514
+ == 5.0.2 2012-03-16
515
+ * Use .rdoc extension on RDoc files (Elia Schito)
516
+ * Update documentation to use self.primary_keys instead of set_primary_keys (Miguel Fonseca)
517
+ * Added tests for comparing composite ids (Jim Jones)
518
+ * Updating the README for clarity (Brett Fishman)
519
+ * Fix method signature mismatch with active_record (Miguel Fonseca)
520
+ * Fix ref in README (Elia Schito)
521
+ * Add test for habm create (Charlie Savage)
522
+
523
+ == 5.0.1 2012-02-13
524
+ * Fix deprecation warning that was exactly backwards (Tom Hughes)
525
+ * Fix primary_keys handling in models that inherit from other models
526
+ but don't redefine their primary_key. Problem was the inherited
527
+ models didn't correctly reference their parents primary_keys (Charlie Savage)
528
+
529
+ == 5.0.0 2012-02-12
530
+ * Fix tests so they pass on MySql (Charlie Savage)
531
+ * Fix calculations to work with duplicate column names (cleesmith)
532
+ * Switch rake tasks for Postgresql and MySql to use ActiveRecord API for
533
+ creating and dropping databases (Charlie Savage)
534
+ * Follow AR 3.2 lead and introduce self.primary_keys and deprecate set_primary_keys (Charlie Savage)
535
+ * Switch from set_primary_key to self.primary_key= to avoid Rails deprecation (Charlie Savage)
536
+ * Fix issue when using multiple database connections (David Doan)
537
+ * Fix homepage in gemspec and remove email address (Charlie Savage)
538
+ * Add support for string keys to exists? (Jan Vlnas)
539
+ * Fix typo (Jason Karns)
540
+
541
+ == 5.0.0.rc1 2012-01-16
542
+ * ActiveRecord 3.2 support
543
+
544
+ == 4.1.2 2012-01-12
545
+ * Helper to allow the same tests to be used for both Oracle and other DBs
546
+ by replacing quoted identifiers with all-caps equivalents on Oracle (Rhett Sutphin)
547
+ * Update Oracle tests (Rhett Sutphin)
548
+
549
+ == 4.1.1 2011-08-31
550
+ * Support for AR 3.1.1
551
+ * Make polymorphic belongs_to work in rails 3.1.1 (Tom Hughes)
552
+ * Eliminate relative paths from the test suite (Rhett Sutphin)
553
+ * Minor improvements to the CPK test runner w/o relative path changes (Rhett Sutphin)
554
+ * Remove stray puts (Rhett Sutphin)
555
+ * Allow AR logs to go to a file when running tests. This commit allows you to
556
+ specify a file to use instead via the CPK_LOGFILE environment variable.
557
+ STDOUT is still the default. (Rhett Sutphin)
558
+ * Use ADAPTER env variable to select database to test. For example:
559
+
560
+ ADAPTER=sqlite3 ruby test/test_suite.rb
561
+ (Rhett Sutphin)
562
+
563
+ * Eliminate constant redef warnings during test runs (Rhett Sutphin)
564
+ * Add missing fixture declarations (Rhett Sutphin)
565
+ * Standardize on integer PKs in polymorphic fixtures (Rhett Sutphin)
566
+ * Fix tiny file name typos (Buck)
567
+
568
+ == 4.0.0 2011-08-31
569
+ * Support for AR 3.1
570
+
571
+ == 4.0.0.beta9 2011-08-22
572
+ * Fix eager-loading in AR 3.1.rc6.
573
+
574
+ == 4.0.0.beta9 2011-082-22
575
+ * Fix eager-loading in AR 3.1.rc6.
576
+
577
+ == 4.0.0.beta8 2011-082-22
578
+ * Sqlite 3 fixes (Jan Vlnas)
579
+ * Fixes for to_key method (Jan Vlnas)
580
+ * Compatible with Rails 3.1 RC6 (Ari Epstein, Travis Warlick)
581
+
582
+ == 4.0.0.beta7 2011-07-26
583
+ * Compatible with Rails 3.1 RC5 (TycoooN)
584
+ * Do not use Arel::Nodes::Or to combine predicates because it creates a
585
+ deeply nested stack that blows up.
586
+
587
+ == 4.0.0.beta4 2011-07-22
588
+ * Compatible with Rails 3.1 stable branch. No longer works with RC4 (Charlie Savage)
589
+ * Do not require loading of postgresql gem unless needed (Charlie Savage)
590
+
591
+ == 4.0.0.beta3 2011-07-08
592
+ * Fix the ability to update the values of a primary key (Travis Warlick)
593
+ * Support port and host configurations for postgres rake tasks (Travis Warlick)
594
+
595
+ == 4.0.0.beta2 2011-06-21
596
+ * ActiveRecord 3.1 RC4 compatibility.
597
+ * Fix instantiation of CPK models with included associations
598
+
599
+ == 4.0.0.beta1 2011-06-09
600
+ * ActiveRecord 3.1 RC1 compatibility. This required a significant rewrite due to
601
+ all the changes in AR 3.1 versus 3.0.
602
+
603
+ == 3.1.11 2012-05-20
604
+ Fix AssociationReflection#derive_primary_key for belongs_to relationships (Heinrich Lee Yu).
605
+
606
+ == 3.1.10 2011-07-08
607
+ * Bugfix for belongs_to with includes (John Ash)
608
+ * Improved tests for calling clear on a habtm association, which involved (David Rueck)
609
+ * Fixed bug that resulted in unrelated records being deleted when calling (David Rueck)
610
+ * Output deprecation warnings about extra columns in join table CPK-aware (David Rueck)
611
+
612
+
613
+ == 3.1.9 2011-06-04
614
+ * Improve HABTM association tests (David Rueck)
615
+ * Remove deprecated Rake tasks (Charlie Savage)
616
+
617
+ == 3.1.8 2011-05-26
618
+ * Fix calling clear on a HABTM associate (David Rueck)
619
+
620
+ == 3.1.7 2011-05-26
621
+ * Support regular AR models having one or many composite models (Jacques Fuentes)
622
+ * Minor test cleanup (Charlie Savage)
623
+ * Make version requirements more explicit (Charlie Savage)
624
+ * Remove Arel extensions used for calculations (Charlie Savage)
625
+ * Fix test that included wrong error constant
626
+
627
+ == 3.1.6 2011-04-03
628
+ * Updated belongs_to association to be a bit more flexible with non-CPK (Charlie Savage)
629
+ base models (Jacques Fuentes)
630
+ * Fix uniqueness check (David Rueck)
631
+ * Fix write issue when one of they keys in a composite key is
632
+ called id (Tom Hughes)
633
+
634
+
635
+ == 3.1.5 2011-03-24
636
+ * Fix simple calculation methods (Charlie Savage)
637
+ * Fix instantiation of cpk records via associations (Charlie Savage)
638
+ * Fix Relation#delete (Charlie Savage)
639
+ * Fix Relation#destroy (Charlie Savage)
640
+
641
+
642
+ == 3.1.4 2011-03-06
643
+ * Support ActiveRecord 3.0.5 - interpolate_sql was removed and
644
+ replaced by interpolate_and_sanitize_sql (Charlie Savage)
645
+ * Fix persistence methods to support destroy callbacks (Charlie Savage)
646
+ * Support rake 0.9.0 beta (Charlie Savage)
647
+
648
+
649
+ == 3.1.2 2011-02-26
650
+ * Add back in support for find('3,3') which makes it possible to
651
+ do find(params[id]). This implementation is simpler than earlier version
652
+ improving code readability.
653
+ * Support for finding multiple records either via find([1,2], [3,4])
654
+ * Remove to_composite_ids method which is no longer needed
655
+
656
+
657
+ == 3.1.1 2011-02-07
658
+ * Implement id_before_type_cast (Jason Lewis)
659
+ * Add in tests for Model.includes(:other_model)
660
+ * Fix object comparison with nil in composite primary keys (StackNG)
661
+ * Make it easier to run tests with different database adapters (Toby Cabot)
662
+ * Fix AssociationReflection#primary_key_name for polymorphic relationships (Dave Doan)
663
+
664
+
665
+ == 3.1.0 2010-12-17
666
+ * Add back in rake test tasks (Toby Cabot)
667
+ * Add support for multiple string composite keys (wouter)
668
+ * Remove support for find('3,3'). Instead use find([3,3])
669
+
670
+
671
+ == 3.0.9 2010-12-04
672
+ * Fix up support for composite key fixtures.
673
+
674
+
675
+ == 3.0.8 2010-12-04
676
+ * Fix for translation issue in unique validation. Thanks to Daniel Berger for the patch.
677
+ * Fix to support child classes of composite primary key models
678
+
679
+
680
+ == 3.0.7 2010-11-29
681
+ * Fix has and belongs to many associations implementation.
682
+
683
+
684
+ == 3.0.6 2010-11-29 (yanked)
685
+ * Add full support for has and belongs to many associations.
686
+
687
+
688
+ == 3.0.5 2010-11-28 (yanked)
689
+ * Apply patch from Marian Rudzynski for fixing up attribute_methods/primary_key
690
+ * Apply patch from Toby Cabot to fix up various sqlite3 issues
691
+ * Add partial support for has and belongs to many associations. Currently a cpk model
692
+ can have a habtm, but a normal model cannot have a habtm to a cpk model (its actually
693
+ not too hard to add, but one step at a time...)
694
+
695
+
696
+ == 3.0.4 2010-11-21
697
+ * Support deleting records when dependent is set to :delete_all
698
+ * Switch the method #id to return a CompositeKeys instance (thus going back to how
699
+ this was done in previous CPK versions)
700
+
701
+
702
+ == 3.0.3 2010-11-19
703
+ * Support ActiveRecord 3.0.3 and Arel 2+
704
+ * Require ActiveRecord 3.0.3 as minimum dependency
705
+ * Fix double quoting issue with table names - thanks to Kevin Motschiedler for a patch.
706
+ * Fix SQLiteAdapter class inheritance issue - thanks to Brandon Hauff for a patch.
707
+
708
+
709
+ == 3.0.1.b3 2010-11-07
710
+
711
+ * Fix bug in joining to :has_one association
712
+ * Added support for Model.find(:last)
713
+ * Added support for finding via associations with
714
+ limited ids. For example find(:include => :foo, :limit => 1)
715
+
716
+ == 3.0.1.b2 2010-11-06
717
+
718
+ * Port to Rails 3.0 and Ruby 1.9.2
719
+
720
+ * Backwards compatability issues
721
+ + You can no longer define a composite primary key with a single field. If you
722
+ try, your model will just default to a standard active record model. Removing
723
+ this corner case simplified the code.
724
+ + Removed CompositePrimaryKeys::CompositeKeys. This was done so that the #to_s
725
+ method on composite ids, such as [1,2], returns "[1, 2]". This in turns
726
+ reduces the amount of core Rails code that needs to be overridden.
727
+ + Setting attribute values by string is no longer supported. For example, this
728
+ no longer works:
729
+ my_record[[:main_id, :secondary_id]] = '1,2'
730
+ Instead, do this:
731
+ my_record[[:main_id, :secondary_id]] = [1,2]
732
+ Once again, this was done to reduce the amount of overridden Rails code
733
+ + At the moment, complex finds with nested arrays do not work. For example
734
+ find([[1,2], [3,4]))
735
+ + Count methods no longer work. For example, Tariff.count(:include => :product_tariffs)
736
+ in the TestAssociations#test_count test returns an error. This is because Rails 3.0
737
+ uses Arel to perform such calculations, and its not obvious (at least to me) how to
738
+ hook into this new mechanism to support tables with composite keys.
739
+ + The TestPolymorphic#test_polymorphic_has_many_through is currently failing, but this
740
+ looks like an ActiveRecord 3.0 bug to me.
741
+
742
+ == 2.3.5.1 2010-02-13
743
+
744
+ * Resolved "warning: already initialized constant HasManyThroughCantAssociateThroughHasManyReflection" [Titi Ala'ilima]
745
+
746
+ == 2.3.5 2009-12-16
747
+
748
+ * Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]
749
+
750
+ == 2.3.2 2009-07-16
751
+
752
+ * explicitly load associations.rb due to some getting an unitialized constant error
753
+
754
+ == 2.3.2 2009-05-28
755
+
756
+ * get tests working again with AR 2.3.2
757
+
758
+ == 2.2.1 2009-01-21
759
+
760
+ * fix ActiveRecord#exists? to work when passing conditions instead of ids
761
+
762
+ == 2.2.0 2008-10-29
763
+
764
+ * Rails 2.2.0 compatibility
765
+
766
+ == 1.1.0 2008-10-29
767
+
768
+ * fixes to get cpk working for Rails 2.1.2
769
+
770
+ == 1.0.10 2008-10-22
771
+
772
+ * add composite key where clause creator method [timurv]
773
+
774
+ == 1.0.9 2008-09-08
775
+
776
+ * fix postgres tests
777
+ * fix for delete_records when has_many association has composite keys [darxriggs]
778
+ * more consistent table/column name quoting [pbrant]
779
+
780
+ == 1.0.8 2008-08-27
781
+
782
+ * fix has_many :through for non composite models [thx rcarver]
783
+
784
+ == 1.0.7 2008-08-12
785
+
786
+ * fix for the last fix -- when has_many is composite and belongs_to is single
787
+
788
+ == 1.0.6 2008-08-06
789
+
790
+ * fix associations create
791
+
792
+ == 1.0.5 2008-07-25
793
+
794
+ * fix for calculations with a group by clause [thx Sirius Black]
795
+
796
+ == 1.0.4 2008-07-15
797
+
798
+ * support for oracle_enhanced adapter [thx Raimonds Simanovskis]
799
+
800
+ == 1.0.3 2008-07-13
801
+
802
+ * more fixes and tests for has many through [thx Menno van der Sman]
803
+
804
+ == 1.0.2 2008-06-07
805
+
806
+ * fix for has many through when through association has composite keys
807
+
808
+ == 1.0.1 2008-06-06
809
+
810
+ * Oracle fixes
811
+
812
+ == 1.0.0 2008-06-05
813
+
814
+ * Support for Rails 2.1
815
+
816
+ == 0.9.93 2008-06-01
817
+
818
+ * set fixed dependency on activerecord 2.0.2
819
+
820
+ == 0.9.92 2008-02-22
821
+
822
+ * Support for has_and_belongs_to_many
823
+
824
+ == 0.9.91 2008-01-27
825
+
826
+ * Incremented activerecord dependency to 2.0.2 [thx emmanuel.pirsch]
827
+
828
+ == 0.9.90 2008-01-27
829
+
830
+ * Trial release for rails/activerecord 2.0.2 supported
831
+
832
+ == 0.9.1 2007-10-28
833
+
834
+ * Migrations fix - allow :primary_key => [:name] to work [no unit test] [thx Shugo Maeda]
835
+
836
+ == 0.9.0 2007-09-28
837
+
838
+ * Added support for polymorphs [thx nerdrew]
839
+ * init.rb file so gem can be installed as a plugin for Rails [thx nerdrew]
840
+ * Added ibm_db support [thx K Venkatasubramaniyan]
841
+ * Support for cleaning dependents [thx K Venkatasubramaniyan]
842
+ * Rafactored db rake tasks into namespaces
843
+ * Added namespaced tests (e.g. mysql:test for test_mysql)
844
+
845
+ == 0.8.6 / 2007-6-12
846
+
847
+ * 1 emergency fix due to Rails Core change
848
+ * Rails v7004 removed #quote; fixed with connection.quote_column_name [thx nerdrew]
849
+
850
+ == 0.8.5 / 2007-6-5
851
+
852
+ * 1 change due to Rails Core change
853
+ * Can no longer use RAILS_CONNECTION_ADAPTERS from Rails core
854
+ * 7 dev improvement:
855
+ * Changed History.txt syntax to rdoc format
856
+ * Added deploy tasks
857
+ * Removed CHANGELOG + migrated into History.txt
858
+ * Changed PKG_NAME -> GEM_NAME in Rakefile
859
+ * Renamed README -> README.txt for :publish_docs task
860
+ * Added :check_version task
861
+ * VER => VERS in rakefile
862
+ * 1 website improvement:
863
+ * website/index.txt includes link to "8 steps to fix other ppls code"
864
+
865
+ == 0.8.4 / 2007-5-3
866
+
867
+ * 1 bugfix
868
+ * Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
869
+
870
+ == 0.8.3 / 2007-5-3
871
+
872
+ * 1 bugfix
873
+ * Explicit reference to ::ActiveRecord::RecordNotFound
874
+ * 1 website addition:
875
+ * Added routing help [Pete Sumskas]
876
+
877
+ == 0.8.2 / 2007-4-11
878
+
879
+ * 1 major enhancement:
880
+ * Oracle unit tests!! [Darrin Holst]
881
+ * And they work too
882
+
883
+ == 0.8.1 / 2007-4-10
884
+
885
+ * 1 bug fix:
886
+ * Fixed the distinct(count) for oracle (removed 'as')
887
+
888
+ == 0.8.0 / 2007-4-6
889
+
890
+ * 1 major enhancement:
891
+ * Support for calcualtions on associations
892
+ * 2 new DB supported:
893
+ * Tests run on sqlite
894
+ * Tests run on postgresql
895
+ * History.txt to keep track of changes like these
896
+ * Using Hoe for Rakefile
897
+ * Website generator rake tasks
898
+
899
+ == 0.3.3
900
+ * id=
901
+ * create now work
902
+
903
+ == 0.1.4
904
+ * it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class
905
+
906
+ == 0.0.1
907
+ * Initial version
908
+ * set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
909
+ * find(*ids) supports the passing of
910
+ * id sets: Foo.find(2,1),
911
+ * lists of id sets: Foo.find([2,1], [7,3], [8,12]),
912
+ * and even stringified versions of the above:
913
+ * Foo.find '2,1' or Foo.find '2,1;7,3'