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