Upgraded Rails and RSpec
[monkeycharger.git] / vendor / rails / activerecord / CHANGELOG
bloba8146ab460594e78c4ebed4901c31342bc90524b
1 *SVN*
3 * Dynamic finders on association collections respect association :order and :limit.  #10211, #10227 [Patrick Joyce, Rick Olson, Jack Danger Canty]
5 * Add 'foxy' support for fixtures of polymorphic associations. #10183 [jbarnette, David Lowenfels]
7 * validates_inclusion_of and validates_exclusion_of allow formatted :message strings.  #8132 [devrieda, Mike Naberezny]
9 * attr_readonly behaves well with optimistic locking.  #10188 [Nick Bugajski]
11 * Base#to_xml supports the nil="true" attribute like Hash#to_xml.  #8268 [Catfish]
13 * Change plings to the more conventional quotes in the documentation. Closes #10104 [danger]
15 * Fix HasManyThrough Association so it uses :conditions on the HasMany Association.  Closes #9729 [danger]
17 * Ensure that column names are quoted.  Closes #10134 [wesley.moxam]
19 * Smattering of grammatical fixes to documentation. Closes #10083 [BobSilva]
21 * Enhance explanation with more examples for attr_accessible macro. Closes #8095 [fearoffish, Marcel Molina]
23 * Update association/method mapping table to refected latest collection methods for has_many :through. Closes #8772 [lifofifo]
25 * Explain semantics of having several different AR instances in a transaction block. Closes #9036 [jacobat, Marcel Molina]
27 * Update Schema documentation to use updated sexy migration notation. Closes #10086 [sjgman9]
29 * Make fixtures work with the new test subclasses. [tarmo, Koz]
31 * Introduce finder :joins with associations. Same :include syntax but with inner rather than outer joins.  #10012 [RubyRedRick]
32     # Find users with an avatar
33     User.find(:all, :joins => :avatar)
35     # Find posts with a high-rated comment.
36     Post.find(:all, :joins => :comments, :conditions => 'comments.rating > 3')
38 * Associations: speedup duplicate record check.  #10011 [lifofifo]
40 * Make sure that << works on has_many associations on unsaved records.  Closes #9989 [hasmanyjosh]
42 * Allow association redefinition in subclasses.  #9346 [wildchild]
44 * Fix has_many :through delete with custom foreign keys.  #6466 [naffis]
46 * Foxy fixtures, from rathole (http://svn.geeksomnia.com/rathole/trunk/README)
47     - stable, autogenerated IDs
48     - specify associations (belongs_to, has_one, has_many) by label, not ID
49     - specify HABTM associations as inline lists
50     - autofill timestamp columns
51     - support YAML defaults
52     - fixture label interpolation
53   Enabled for fixtures that correspond to a model class and don't specify a primary key value.  #9981 [jbarnette]
55 * Add docs explaining how to protect all attributes using attr_accessible with no arguments. Closes #9631 [boone, rmm5t]
57 * Update add_index documentation to use new options api. Closes #9787 [kamal]
59 * Allow find on a has_many association defined with :finder_sql to accept id arguments as strings like regular find does. Closes #9916 [krishna]
61 * Use VALID_FIND_OPTIONS when resolving :find scoping rather than hard coding the list of valid find options. Closes #9443 [sur]
63 * Limited eager loading no longer ignores scoped :order. Closes #9561 [danger, josh]
65 * Assigning an instance of a foreign class to a composed_of aggregate calls an optional conversion block. Refactor and simplify composed_of implementation.  #6322 [brandon, Chris Cruft]
67 * Assigning nil to a composed_of aggregate also sets its immediate value to nil.  #9843 [Chris Cruft]
69 * Ensure that mysql quotes table names with database names correctly.  Closes #9911 [crayz]
71   "foo.bar" => "`foo`.`bar`"  
73 * Complete the assimilation of Sexy Migrations from ErrFree [Chris Wanstrath, PJ Hyett]
74         http://errtheblog.com/post/2381
76 * Qualified column names work in hash conditions, like :conditions => { 'comments.created_at' => ... }.  #9733 [danger]
78 * Fix regression where the association would not construct new finder SQL on save causing bogus queries for "WHERE owner_id = NULL" even after owner was saved.  #8713 [Bryan Helmkamp]
80 * Refactor association create and build so before & after callbacks behave consistently.  #8854 [lifofifo, mortent]
82 * Quote table names. Defaults to column quoting.  #4593 [Justin Lynn, gwcoffey, eadz, Dmitry V. Sabanin, Jeremy Kemper]
84 * Alias association #build to #new so it behaves predictably.  #8787 [lifofifo]
86 * Add notes to documentation regarding attr_readonly behavior with counter caches and polymorphic associations.  Closes #9835 [saimonmoore, rick]
88 * Observers can observe model names as symbols properly now.  Closes #9869  [queso]
90 * find_and_(initialize|create)_by methods can now properly initialize protected attributes [Tobias Luetke]
92 * belongs_to infers the foreign key from the association name instead of from the class name.  [Jeremy Kemper]
94 * PostgreSQL: support multiline default values.  #7533 [Carl Lerche, aguynamedryan, Rein Henrichs, Tarmo Tänav]
96 * MySQL: fix change_column on not-null columns that don't accept dfeault values of ''.  #6663 [Jonathan Viney, Tarmo Tänav]
98 * validates_uniqueness_of behaves well with abstract superclasses and
99 single-table inheritance.  #3833, #9886 [Gabriel Gironda, rramdas, François Beausoleil, Josh Peek, Tarmo Tänav, pat]
101 * Warn about protected attribute assigments in development and test environments when mass-assigning to an attr_protected attribute.  #9802 [Henrik N]
103 * Speedup database date/time parsing.  [Jeremy Kemper, Tarmo Tänav]
105 * Fix calling .clear on a has_many :dependent=>:delete_all association. [tarmo]
107 * Allow change_column to set NOT NULL in the PostgreSQL adapter [tarmo]
109 * Fix that ActiveRecord would create attribute methods and override custom attribute getters if the method is also defined in Kernel.methods. [Rick]
111 * Don't call attr_readonly on polymorphic belongs_to associations, in case it matches the name of some other non-ActiveRecord class/module.  [Rick]
113 * Try loading activerecord-<adaptername>-adapter gem before trying a plain require so you can use custom gems for the bundled adapters. Also stops gems from requiring an adapter from an old Active Record gem.  [Jeremy Kemper, Derrick Spell]
116 *2.0.0 [Preview Release]* (September 29th, 2007) [Includes duplicates of changes from 1.14.2 - 1.15.3]
118 * Add attr_readonly to specify columns that are skipped during a normal ActiveRecord #save operation. Closes #6896 [dcmanges]
120   class Comment < ActiveRecord::Base
121     # Automatically sets Article#comments_count as readonly.
122     belongs_to :article, :counter_cache => :comments_count
123   end
125   class Article < ActiveRecord::Base
126     attr_readonly :approved_comments_count
127   end
129 * Make size for has_many :through use counter cache if it exists.  Closes #9734 [xaviershay]
131 * Remove DB2 adapter since IBM chooses to maintain their own adapter instead.  [Jeremy Kemper]
133 * Extract Oracle, SQLServer, and Sybase adapters into gems.  [Jeremy Kemper]
135 * Added fixture caching that'll speed up a normal fixture-powered test suite between 50% and 100% #9682 [frederick.cheung@gmail.com]
137 * Correctly quote id list for limited eager loading.  #7482 [tmacedo]
139 * Fixed that using version-targetted migrates would fail on loggers other than the default one #7430 [valeksenko]
141 * Fixed rename_column for SQLite when using symbols for the column names #8616 [drodriguez]
143 * Added the possibility of using symbols in addition to concrete classes with ActiveRecord::Observer#observe #3998 [robbyrussell/tarmo]
145 * Added ActiveRecord::Base#to_json/from_json [DHH/chuyeow]
147 * Added ActiveRecord::Base#from_xml [DHH]. Example:
149     xml = "<person><name>David</name></person>"
150     Person.new.from_xml(xml).name # => "David"
152 * Define dynamic finders as real methods after first usage. [bscofield]
154 * Deprecation: remove deprecated threaded_connections methods. Use allow_concurrency instead.  [Jeremy Kemper]
156 * Associations macros accept extension blocks alongside modules.  #9346 [Josh Peek]
158 * Speed up and simplify query caching.  [Jeremy Kemper]
160 * connection.select_rows 'sql' returns an array (rows) of arrays (field values).  #2329 [Michael Schuerig]
162 * Eager loading respects explicit :joins.  #9496 [dasil003]
164 * Extract Firebird, FrontBase, and OpenBase adapters into gems.  #9508, #9509, #9510 [Jeremy Kemper]
166 * RubyGem database adapters: expects a gem named activerecord-<database>-adapter with active_record/connection_adapters/<database>_adapter.rb in its load path.  [Jeremy Kemper]
168 * Fixed that altering join tables in migrations would fail w/ sqlite3 #7453 [TimoMihaljov/brandon]
170 * Fix association writer with :dependent => :nullify.  #7314 [Jonathan Viney]
172 * OpenBase: update for new lib and latest Rails. Support migrations.  #8748 [dcsesq]
174 * Moved acts_as_tree into a plugin of the same name on the official Rails svn #9514 [lifofifo]
176 * Moved acts_as_nested_set into a plugin of the same name on the official Rails svn #9516 [josh]
178 * Moved acts_as_list into a plugin of the same name on the official Rails svn [josh]
180 * Explicitly require active_record/query_cache before using it.  [Jeremy Kemper]
182 * Fix bug where unserializing an attribute attempts to modify a frozen @attributes hash for a deleted record.  [Rick, marclove]
184 * Performance: absorb instantiate and initialize_with_callbacks into the Base methods. [Jeremy Kemper]
186 * Fixed that eager loading queries and with_scope should respect the :group option [DHH]
188 * Improve performance and functionality of the postgresql adapter.  Closes #8049 [roderickvd]
190         For more information see: http://dev.rubyonrails.org/ticket/8049
192 * Don't clobber includes passed to has_many.count [danger]
194 * Make sure has_many uses :include when counting [danger]
196 * Change the implementation of ActiveRecord's attribute reader and writer methods [nzkoz]
197  - Generate Reader and Writer methods which cache attribute values in hashes.  This is to avoid repeatedly parsing the same date or integer columns.
198  - Change exception raised when users use find with :select then try to access a skipped column.  Plugins could override missing_attribute() to lazily load the columns.
199  - Move method definition to the class, instead of the instance
200  - Always generate the readers, writers and predicate methods.
202 * Perform a deep #dup on query cache results so that modifying activerecord attributes does not modify the cached attributes.  [Rick]
204 # Ensure that has_many :through associations use a count query instead of loading the target when #size is called.  Closes #8800 [lifo]
206 * Added :unless clause to validations #8003 [monki]. Example: 
208     def using_open_id?
209       !identity_url.blank?
210     end
212     validates_presence_of :identity_url, :if => using_open_id?
213     validates_presence_of :username, :unless => using_open_id?
214     validates_presence_of :password, :unless => using_open_id?
216 * Fix #count on a has_many :through association so that it recognizes the :uniq option.  Closes #8801 [lifofifo]
218 * Fix and properly document/test count(column_name) usage. Closes #8999 [lifofifo]
220 * Remove deprecated count(conditions=nil, joins=nil) usage.  Closes #8993 [lifofifo]
222 * Change belongs_to so that the foreign_key assumption is taken from the association name, not the class name.  Closes #8992 [hasmanyjosh]
224   OLD
225     belongs_to :visitor, :class_name => 'User' # => inferred foreign_key is user_id
226     
227   NEW
228     belongs_to :visitor, :class_name => 'User' # => inferred foreign_key is visitor_id
230 * Remove spurious tests from deprecated_associations_test, most of these aren't deprecated, and are duplicated in associations_test.  Closes #8987 [lifofifo]
232 * Make create! on a has_many :through association return the association object.  Not the collection.  Closes #8786 [lifofifo]
234 * Move from select * to select tablename.* to avoid clobbering IDs. Closes #8889 [dasil003]
236 * Don't call unsupported methods on associated objects when using :include, :method with to_xml #7307, [manfred, jwilger]
238 * Define collection singular ids method for has_many :through associations.  #8763 [lifofifo]
240 * Array attribute conditions work with proxied association collections.  #8318 [kamal, theamazingrando]
242 * Fix polymorphic has_one associations declared in an abstract class.  #8638 [lifofifo, daxhuiberts]
244 * Fixed validates_associated should not stop on the first error #4276 [mrj/manfred/josh]
246 * Rollback if commit raises an exception.  #8642 [kik, Jeremy Kemper]
248 * Update tests' use of fixtures for the new collections api.  #8726 [kamal]
250 * Save associated records only if the association is already loaded.  #8713 [blaine]
252 * MySQL: fix show_variable.  #8448 [matt, Jeremy Kemper]
254 * Fixtures: correctly delete and insert fixtures in a single transaction.  #8553 [Michael Schuerig]
256 * Fixtures: people(:technomancy, :josh) returns both fixtures.  #7880 [technomancy, Josh Peek]
258 * Calculations support non-numeric foreign keys.  #8154 [kamal]
260 * with_scope is protected.  #8524 [Josh Peek]
262 * Quickref for association methods.  #7723 [marclove, Mindsweeper]
264 * Calculations: return nil average instead of 0 when there are no rows to average.  #8298 [davidw]
266 * acts_as_nested_set: direct_children is sorted correctly.  #4761 [Josh Peek, rails@33lc0.net]
268 * Raise an exception if both attr_protected and attr_accessible are declared.  #8507 [stellsmi]
270 * SQLite, MySQL, PostgreSQL, Oracle: quote column names in column migration SQL statements.  #8466 [marclove, lorenjohnson]
272 * Allow nil serialized attributes with a set class constraint.  #7293 [sandofsky]
274 * Oracle: support binary fixtures.  #7987 [Michael Schoen]
276 * Fixtures: pull fixture insertion into the database adapters.  #7987 [Michael Schoen]
278 * Announce migration versions as they're performed.  [Jeremy Kemper]
280 * find gracefully copes with blank :conditions.  #7599 [Dan Manges, johnnyb]
282 * validates_numericality_of takes :greater_than, :greater_than_or_equal_to, :equal_to, :less_than, :less_than_or_equal_to, :odd, and :even options.  #3952 [Bob Silva, Dan Kubb, Josh Peek]
284 * MySQL: create_database takes :charset and :collation options. Charset defaults to utf8.  #8448 [matt]
286 * Find with a list of ids supports limit/offset.  #8437 [hrudududu]
288 * Optimistic locking: revert the lock version when an update fails.  #7840 [plang]
290 * Migrations: add_column supports custom column types.  #7742 [jsgarvin, Theory]
292 * Load database adapters on demand. Eliminates config.connection_adapters and RAILS_CONNECTION_ADAPTERS. Add your lib directory to the $LOAD_PATH and put your custom adapter in lib/active_record/connection_adapters/adaptername_adapter.rb. This way you can provide custom adapters as plugins or gems without modifying Rails. [Jeremy Kemper]
294 * Ensure that associations with :dependent => :delete_all respect :conditions option.  Closes #8034 [danger, joshpeek, Rick]
296 * belongs_to assignment creates a new proxy rather than modifying its target in-place.  #8412 [mmangino@elevatedrails.com]
298 * Fix column type detection while loading fixtures.  Closes #7987 [roderickvd]
300 * Document deep eager includes.  #6267 [Josh Susser, Dan Manges]
302 * Document warning that associations names shouldn't be reserved words.  #4378 [murphy@cYcnus.de, Josh Susser]
304 * Sanitize Base#inspect.  #8392, #8623 [Nik Wakelin, jnoon]
306 * Replace the transaction {|transaction|..} semantics with a new Exception ActiveRecord::Rollback.   [Koz]
308 * Oracle: extract column length for CHAR also.  #7866 [ymendel]
310 * Document :allow_nil option for validates_acceptance_of since it defaults to true. [tzaharia]
312 * Update documentation for :dependent declaration so that it explicitly uses the non-deprecated API. [danger]
314 * Add documentation caveat about when to use count_by_sql. [fearoffish]
316 * Enhance documentation for increment_counter and decrement_counter. [fearoffish]
318 * Provide brief introduction to what optimistic locking is. [fearoffish]
320 * Add documentation for :encoding option to mysql adapter. [marclove]
322 * Added short-hand declaration style to migrations (inspiration from Sexy Migrations, http://errtheblog.com/post/2381) [DHH]. Example:
324     create_table "products" do |t|
325       t.column "shop_id",    :integer
326       t.column "creator_id", :integer
327       t.column "name",       :string,   :default => "Untitled"
328       t.column "value",      :string,   :default => "Untitled"
329       t.column "created_at", :datetime
330       t.column "updated_at", :datetime
331     end
332   
333   ...can now be written as:
334   
335     create_table :products do |t|
336       t.integer :shop_id, :creator_id
337       t.string  :name, :value, :default => "Untitled"
338       t.timestamps
339     end
341 * Use association name for the wrapper element when using .to_xml.  Previous behavior lead to non-deterministic situations with STI and polymorphic associations. [Koz, jstrachan]
343 * Improve performance of calling .create on has_many :through associations. [evan]
345 * Improved cloning performance by relying less on exception raising #8159 [Blaine]
347 * Added ActiveRecord::Base.inspect to return a column-view like #<Post id:integer, title:string, body:text> [DHH]
349 * Added yielding of Builder instance for ActiveRecord::Base#to_xml calls [DHH]
351 * Small additions and fixes for ActiveRecord documentation.  Closes #7342 [jeremymcanally]
353 * Add helpful debugging info to the ActiveRecord::StatementInvalid exception in ActiveRecord::ConnectionAdapters::SqliteAdapter#table_structure.  Closes #7925. [court3nay]
355 * SQLite: binary escaping works with $KCODE='u'.  #7862 [tsuka]
357 * Base#to_xml supports serialized attributes.  #7502 [jonathan]
359 * Base.update_all :order and :limit options. Useful for MySQL updates that must be ordered to avoid violating unique constraints.  [Jeremy Kemper]
361 * Remove deprecated object transactions.  People relying on this functionality should install the object_transactions plugin at http://code.bitsweat.net/svn/object_transactions.  Closes #5637 [Koz, Jeremy Kemper]
363 * PostgreSQL: remove DateTime -> Time downcast. Warning: do not enable translate_results for the C bindings if you have timestamps outside Time's domain.  [Jeremy Kemper]
365 * find_or_create_by_* takes a hash so you can create with more attributes than are in the method name. For example, Person.find_or_create_by_name(:name => 'Henry', :comments => 'Hi new user!') is equivalent to Person.find_by_name('Henry') || Person.create(:name => 'Henry', :comments => 'Hi new user!').  #7368 [Josh Susser]
367 * Make sure with_scope takes both :select and :joins into account when setting :readonly.  Allows you to save records you retrieve using method_missing on a has_many :through associations.  [Koz]
369 * Allow a polymorphic :source for has_many :through associations.  Closes #7143 [protocool]
371 * Consistent public/protected/private visibility for chained methods.  #7813 [Dan Manges]
373 * Oracle: fix quoted primary keys and datetime overflow.  #7798 [Michael Schoen]
375 * Consistently quote primary key column names.  #7763 [toolmantim]
377 * Fixtures: fix YAML ordered map support.  #2665 [Manuel Holtgrewe, nfbuckley]
379 * DateTimes assume the default timezone.  #7764 [Geoff Buesing]
381 * Sybase: hide timestamp columns since they're inherently read-only.  #7716 [Mike Joyce]
383 * Oracle: overflow Time to DateTime.  #7718 [Michael Schoen]
385 * PostgreSQL: don't use async_exec and async_query with postgres-pr.  #7727, #7762 [flowdelic, toolmantim]
387 * Fix has_many :through << with custom foreign keys.  #6466, #7153 [naffis, Rich Collins]
389 * Test DateTime native type in migrations, including an edge case with dates
390 during calendar reform.  #7649, #7724 [fedot, Geoff Buesing]
392 * SQLServer: correctly schema-dump tables with no indexes or descending indexes.  #7333, #7703 [Jakob S, Tom Ward]
394 * SQLServer: recognize real column type as Ruby float.  #7057 [sethladd, Tom Ward]
396 * Added fixtures :all as a way of loading all fixtures in the fixture directory at once #7214 [manfred]
398 * Added database connection as a yield parameter to ActiveRecord::Base.transaction so you can manually rollback [DHH]. Example:
400     transaction do |transaction|
401       david.withdrawal(100)
402       mary.deposit(100)
403       transaction.rollback! # rolls back the transaction that was otherwise going to be successful
404     end
406 * Made increment_counter/decrement_counter play nicely with optimistic locking, and added a more general update_counters method [Jamis Buck]
408 * Reworked David's query cache to be available as Model.cache {...}. For the duration of the block no select query should be run more then once. Any inserts/deletes/executes will flush the whole cache however [Tobias Luetke]
409   Task.cache { Task.find(1); Task.find(1) } #=> 1 query
410   
411 * When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. [Jamis Buck]
413 * Oracle: fix lob and text default handling.  #7344 [gfriedrich, Michael Schoen]
415 * SQLServer: don't choke on strings containing 'null'.  #7083 [Jakob S]
417 * MySQL: blob and text columns may not have defaults in 5.x. Update fixtures schema for strict mode.  #6695 [Dan Kubb]
419 * update_all can take a Hash argument. sanitize_sql splits into two methods for conditions and assignment since NULL values and delimiters are handled differently.  #6583, #7365 [sandofsky, Assaf]
421 * MySQL: SET SQL_AUTO_IS_NULL=0 so 'where id is null' doesn't select the last inserted id.  #6778 [Jonathan Viney, timc]
423 * Use Date#to_s(:db) for quoted dates.  #7411 [Michael Schoen]
425 * Don't create instance writer methods for class attributes.  Closes #7401 [Rick]
427 * Docs: validations examples.  #7343 [zackchandler]
429 * Add missing tests ensuring callbacks work with class inheritance.  Closes #7339 [sandofsky]
431 * Fixtures use the table name and connection from set_fixture_class.  #7330 [Anthony Eden]
433 * Remove useless code in #attribute_present? since 0 != blank?.  Closes #7249 [Josh Susser]
435 * Fix minor doc typos. Closes #7157 [Josh Susser]
437 * Fix incorrect usage of #classify when creating the eager loading join statement.  Closes #7044 [Josh Susser]
439 * SQLServer: quote table name in indexes query.  #2928 [keithm@infused.org]
441 * Subclasses of an abstract class work with single-table inheritance.  #5704, #7284 [BertG, nick+rails@ag.arizona.edu]
443 * Make sure sqlite3 driver closes open connections on disconnect [Rob Rasmussen]
445 * [DOC] clear up some ambiguity with the way has_and_belongs_to_many creates the default join table name.  #7072 [jeremymcanally]
447 * change_column accepts :default => nil. Skip column options for primary keys.  #6956, #7048 [Dan Manges, Jeremy Kemper]
449 * MySQL, PostgreSQL: change_column_default quotes the default value and doesn't lose column type information.  #3987, #6664 [Jonathan Viney, manfred, altano@bigfoot.com]
451 * Oracle: create_table takes a :sequence_name option to override the 'tablename_seq' default.  #7000 [Michael Schoen]
453 * MySQL: retain SSL settings on reconnect.  #6976 [randyv2]
455 * Apply scoping during initialize instead of create.  Fixes setting of foreign key when using find_or_initialize_by with scoping. [Cody Fauser]
457 * SQLServer: handle [quoted] table names.  #6635 [rrich]
459 * acts_as_nested_set works with single-table inheritance.  #6030 [Josh Susser]
461 * PostgreSQL, Oracle: correctly perform eager finds with :limit and :order.  #4668, #7021 [eventualbuddha, Michael Schoen]
463 * Pass a range in :conditions to use the SQL BETWEEN operator.  #6974 [Dan Manges]
464     Student.find(:all, :conditions => { :grade => 9..12 })
466 * Fix the Oracle adapter for serialized attributes stored in CLOBs.  Closes #6825 [mschoen, tdfowler]
468 * [DOCS] Apply more documentation for ActiveRecord Reflection.  Closes #4055 [Robby Russell]
470 * [DOCS] Document :allow_nil option of #validate_uniqueness_of. Closes #3143 [Caio Chassot]
472 * Bring the sybase adapter up to scratch for 1.2 release. [jsheets]
474 * Rollback new_record? and id when an exception is raised in a save callback.  #6910 [Ben Curren, outerim]
476 * Pushing a record on an association collection doesn't unnecessarily load all the associated records.  [Obie Fernandez, Jeremy Kemper]
478 * Oracle: fix connection reset failure.  #6846 [leonlleslie]
480 * Subclass instantiation doesn't try to explicitly require the corresponding subclass.  #6840 [leei, Jeremy Kemper]
482 * fix faulty inheritance tests and that eager loading grabs the wrong inheritance column when the class of your association is an STI subclass. Closes #6859 [protocool]
484 * Consolidated different create and create! versions to call through to the base class with scope. This fixes inconsistencies, especially related to protected attribtues. Closes #5847 [Alexander Dymo, Tobias Luetke]
486 * find supports :lock with :include. Check whether your database allows SELECT ... FOR UPDATE with outer joins before using.  #6764 [vitaly, Jeremy Kemper]
488 * Add AssociationCollection#create! to be consistent with AssociationCollection#create when dealing with a foreign key that is a protected attribute [Cody Fauser]
490 * Added counter optimization for AssociationCollection#any? so person.friends.any? won't actually load the full association if we have the count in a cheaper form [DHH]
492 * Change fixture_path to a class inheritable accessor allowing test cases to have their own custom set of fixtures. #6672 [zdennis]
494 * Quote ActiveSupport::Multibyte::Chars.  #6653 [Julian Tarkhanov]
496 * Simplify query_attribute by typecasting the attribute value and checking whether it's nil, false, zero or blank.  #6659 [Jonathan Viney]
498 * validates_numericality_of uses \A \Z to ensure the entire string matches rather than ^ $ which may match one valid line of a multiline string.  #5716 [Andreas Schwarz]
500 * Run validations in the order they were declared.  #6657 [obrie]
502 * MySQL: detect when a NOT NULL column without a default value is misreported as default ''.  Can't detect for string, text, and binary columns since '' is a legitimate default.  #6156 [simon@redhillconsulting.com.au, obrie, Jonathan Viney, Jeremy Kemper]
504 * Simplify association proxy implementation by factoring construct_scope out of method_missing.  #6643 [martin]
506 * Oracle: automatically detect the primary key.  #6594 [vesaria, Michael Schoen]
508 * Oracle: to increase performance, prefetch 100 rows and enable similar cursor sharing. Both are configurable in database.yml.  #6607 [philbogle@gmail.com, ray.fortna@jobster.com, Michael Schoen]
510 * Don't inspect unloaded associations.  #2905 [lmarlow]
512 * SQLite: use AUTOINCREMENT primary key in >= 3.1.0.  #6588, #6616 [careo, lukfugl]
514 * Cache inheritance_column.  #6592 [Stefan Kaes]
516 * Firebird: decimal/numeric support.  #6408 [macrnic]
518 * make add_order a tad faster. #6567 [Stefan Kaes]
520 * Find with :include respects scoped :order.  #5850
522 * Support nil and Array in :conditions => { attr => value } hashes.  #6548 [Assaf, Jeremy Kemper]
523     find(:all, :conditions => { :topic_id => [1, 2, 3], :last_read => nil }
525 * Consistently use LOWER() for uniqueness validations (rather than mixing with UPPER()) so the database can always use a functional index on the lowercased column.  #6495 [Si]
527 * SQLite: fix calculations workaround, remove count(distinct) query rewrite, cleanup test connection scripts.  [Jeremy Kemper]
529 * SQLite: count(distinct) queries supported in >= 3.2.6.  #6544 [Bob Silva]
531 * Dynamically generate reader methods for serialized attributes.  #6362 [Stefan Kaes]
533 * Deprecation: object transactions warning.  [Jeremy Kemper]
535 * has_one :dependent => :nullify ignores nil associates.  #4848, #6528 [bellis@deepthought.org, janovetz, Jeremy Kemper]
537 * Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults, fix limited id selection for eager loading. Factor out some common methods from all adapters.  #6515 [Michael Schoen]
539 * Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
541 * Document other options available to migration's add_column. #6419 [grg]
543 * MySQL: all_hashes compatibility with old MysqlRes class.  #6429, #6601 [Jeremy Kemper]
545 * Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783. [Jonathan Viney]
547 * fix select_limited_ids_list issues in postgresql, retain current behavior in other adapters [Rick]
549 * Restore eager condition interpolation, document it's differences [Rick]
551 * Don't rollback in teardown unless a transaction was started. Don't start a transaction in create_fixtures if a transaction is started.  #6282 [Jacob Fugal, Jeremy Kemper]
553 * Add #delete support to has_many :through associations.  Closes #6049 [Martin Landers]
555 * Reverted old select_limited_ids_list postgresql fix that caused issues in mysql.  Closes #5851 [Rick]
557 * Removes the ability for eager loaded conditions to be interpolated, since there is no model instance to use as a context for interpolation. #5553 [turnip@turnipspatch.com]
559 * Added timeout option to SQLite3 configurations to deal more gracefully with SQLite3::BusyException, now the connection can instead retry for x seconds to see if the db clears up before throwing that exception #6126 [wreese@gmail.com]
561 * Added update_attributes! which uses save! to raise an exception if a validation error prevents saving #6192 [jonathan]
563 * Deprecated add_on_boundary_breaking (use validates_length_of instead) #6292 [BobSilva]
565 * The has_many create method works with polymorphic associations.  #6361 [Dan Peterson]
567 * MySQL: introduce Mysql::Result#all_hashes to support further optimization.  #5581 [Stefan Kaes]
569 * save! shouldn't validate twice.  #6324 [maiha, Bob Silva]
571 * Association collections have an _ids reader method to match the existing writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values.  #1887, #5780 [Michael Schuerig]
573 * Add an attribute reader method for ActiveRecord::Base.observers [Rick Olson]
575 * Deprecation: count class method should be called with an options hash rather than two args for conditions and joins.  #6287 [Bob Silva]
577 * has_one associations with a nil target may be safely marshaled.  #6279 [norbauer, Jeremy Kemper]
579 * Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side effects [Koz]
581 * Add a :namespace option to  AR::Base#to_xml [Koz]
583 * Deprecation tests. Remove warnings for dynamic finders and for the foo_count method if it's also an attribute. [Jeremy Kemper]
585 * Mock Time.now for more accurate Touch mixin tests.  #6213 [Dan Peterson]
587 * Improve yaml fixtures error reporting.  #6205 [Bruce Williams]
589 * Rename AR::Base#quote so people can use that name in their models. #3628 [Koz]
591 * Add deprecation warning for inferred foreign key. #6029 [Josh Susser]
593 * Fixed the Ruby/MySQL adapter we ship with Active Record to work with the new authentication handshake that was introduced in MySQL 4.1, along with the other protocol changes made at that time #5723 [jimw@mysql.com]
595 * Deprecation: use :dependent => :delete_all rather than :exclusively_dependent => true.  #6024 [Josh Susser]
597 * Document validates_presences_of behavior with booleans: you probably want validates_inclusion_of :attr, :in => [true, false].  #2253 [Bob Silva]
599 * Optimistic locking: gracefully handle nil versions, treat as zero.  #5908 [Tom Ward]
601 * to_xml: the :methods option works on arrays of records.  #5845 [Josh Starcher]
603 * Deprecation: update docs. #5998 [jakob@mentalized.net, Kevin Clark]
605 * Add some XmlSerialization tests for ActiveRecord [Rick Olson]
607 * has_many :through conditions are sanitized by the associating class.  #5971 [martin.emde@gmail.com]
609 * Tighten rescue clauses.  #5985 [james@grayproductions.net]
611 * Fix spurious newlines and spaces in AR::Base#to_xml output [Jamis Buck]
613 * has_one supports the :dependent => :delete option which skips the typical callback chain and deletes the associated object directly from the database.  #5927 [Chris Mear, Jonathan Viney]
615 * Nested subclasses are not prefixed with the parent class' table_name since they should always use the base class' table_name.  #5911 [Jonathan Viney]
617 * SQLServer: work around bug where some unambiguous date formats are not correctly identified if the session language is set to german.  #5894 [Tom Ward, kruth@bfpi]
619 * SQLServer: fix eager association test.  #5901 [Tom Ward]
621 * Clashing type columns due to a sloppy join shouldn't wreck single-table inheritance.  #5838 [Kevin Clark]
623 * Fixtures: correct escaping of \n and \r.  #5859 [evgeny.zislis@gmail.com]
625 * Migrations: gracefully handle missing migration files.  #5857 [eli.gordon@gmail.com]
627 * MySQL: update test schema for MySQL 5 strict mode.  #5861 [Tom Ward]
629 * to_xml: correct naming of included associations.  #5831 [josh.starcher@gmail.com]
631 * Pushing a record onto a has_many :through sets the association's foreign key to the associate's primary key and adds it to the correct association.  #5815, #5829 [josh@hasmanythrough.com]
633 * Add records to has_many :through using <<, push, and concat by creating the association record. Raise if base or associate are new records since both ids are required to create the association. #build raises since you can't associate an unsaved record. #create! takes an attributes hash and creates the associated record and its association in a transaction. [Jeremy Kemper]
635     # Create a tagging to associate the post and tag.
636     post.tags << Tag.find_by_name('old')
637     post.tags.create! :name => 'general'
639     # Would have been:
640     post.taggings.create!(:tag => Tag.find_by_name('finally')
641     transaction do
642       post.taggings.create!(:tag => Tag.create!(:name => 'general'))
643     end
645 * Cache nil results for :included has_one associations also.  #5787 [Michael Schoen]
647 * Fixed a bug which would cause .save to fail after trying to access a empty has_one association on a unsaved record. [Tobias Luetke]
649 * Nested classes are given table names prefixed by the singular form of the parent's table name. [Jeremy Kemper]
650     Example: Invoice::Lineitem is given table name invoice_lineitems
652 * Migrations: uniquely name multicolumn indexes so you don't have to. [Jeremy Kemper]
653     # people_active_last_name_index, people_active_deactivated_at_index
654     add_index    :people, [:active, :last_name]
655     add_index    :people, [:active, :deactivated_at]
656     remove_index :people, [:active, :last_name]
657     remove_index :people, [:active, :deactivated_at]
659   WARNING: backward-incompatibility. Multicolumn indexes created before this
660   revision were named using the first column name only. Now they're uniquely
661   named using all indexed columns.
663   To remove an old multicolumn index, remove_index :table_name, :first_column
665 * Fix for deep includes on the same association. [richcollins@gmail.com]
667 * Tweak fixtures so they don't try to use a non-ActiveRecord class.  [Kevin Clark]
669 * Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore.  [Rick Olson]
671 * Document find's :from option. Closes #5762. [andrew@redlinesoftware.com]
673 * PostgreSQL: autodetected sequences work correctly with multiple schemas. Rely on the schema search_path instead of explicitly qualifying the sequence name with its schema.  #5280 [guy.naor@famundo.com]
675 * Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]
677 * Cache nil results for has_one associations so multiple calls don't call the database.  Closes #5757. [Michael A. Schoen]
679 * Add documentation for how to disable timestamps on a per model basis. Closes #5684. [matt@mattmargolis.net Marcel Molina Jr.] 
681 * Don't save has_one associations unnecessarily.  #5735 [Jonathan Viney]
683 * Refactor ActiveRecord::Base.reset_subclasses to #reset, and add global observer resetting.  [Rick Olson]
685 * Formally deprecate the deprecated finders. [Koz]
687 * Formally deprecate rich associations.  [Koz]
689 * Fixed that default timezones for new / initialize should uphold utc setting #5709 [daniluk@yahoo.com]
691 * Fix announcement of very long migration names.  #5722 [blake@near-time.com]
693 * The exists? class method should treat a string argument as an id rather than as conditions.  #5698 [jeremy@planetargon.com]
695 * Fixed to_xml with :include misbehaviors when invoked on array of model instances #5690 [alexkwolfe@gmail.com]
697 * Added support for conditions on Base.exists? #5689 [josh@joshpeek.com]. Examples:
699     assert (Topic.exists?(:author_name => "David")) 
700           assert (Topic.exists?(:author_name => "Mary", :approved => true)) 
701           assert (Topic.exists?(["parent_id = ?", 1]))
703 * Schema dumper quotes date :default values. [Dave Thomas]
705 * Calculate sum with SQL, not Enumerable on HasManyThrough Associations. [Dan Peterson]
707 * Factor the attribute#{suffix} methods out of method_missing for easier extension. [Jeremy Kemper]
709 * Patch sql injection vulnerability when using integer or float columns. [Jamis Buck]
711 * Allow #count through a has_many association to accept :include.  [Dan Peterson]
713 * create_table rdoc: suggest :id => false for habtm join tables. [Zed Shaw]
715 * PostgreSQL: return array fields as strings. #4664 [Robby Russell]
717 * SQLServer: added tests to ensure all database statements are closed, refactored identity_insert management code to use blocks, removed update/delete rowcount code out of execute and into update/delete, changed insert to go through execute method, removed unused quoting methods, disabled pessimistic locking tests as feature is currently unsupported, fixed RakeFile to load sqlserver specific tests whether running in ado or odbc mode, fixed support for recently added decimal types, added support for limits on integer types. #5670 [Tom Ward]
719 * SQLServer: fix db:schema:dump case-sensitivity. #4684 [Will Rogers]
721 * Oracle: BigDecimal support. #5667 [schoenm@earthlink.net]
723 * Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. #5454 [robbat2@gentoo.org, work@ashleymoran.me.uk]
725 * Firebird migrations support. #5337 [Ken Kunz <kennethkunz@gmail.com>]
727 * PostgreSQL: create/drop as postgres user. #4790 [mail@matthewpainter.co.uk, mlaster@metavillage.com]
729 * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]
731 * PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net]
733 * PostgreSQL: correctly quote microseconds in timestamps. #5641 [rick@rickbradley.com]
735 * Clearer has_one/belongs_to model names (account has_one :user). #5632 [matt@mattmargolis.net]
737 * Oracle: use nonblocking queries if allow_concurrency is set, fix pessimistic locking, don't guess date vs. time by default (set OracleAdapter.emulate_dates = true for the old behavior), adapter cleanup. #5635 [schoenm@earthlink.net]
739 * Fixed a few Oracle issues: Allows Oracle's odd date handling to still work consistently within #to_xml, Passes test that hardcode insert statement by dropping the :id column, Updated RUNNING_UNIT_TESTS with Oracle instructions, Corrects method signature for #exec #5294 [schoenm@earthlink.net]
741 * Added :group to available options for finds done on associations #5516 [mike@michaeldewey.org]
743 * Minor tweak to improve performance of ActiveRecord::Base#to_param.
745 * Observers also watch subclasses created after they are declared. #5535 [daniels@pronto.com.au]
747 * Removed deprecated timestamps_gmt class methods. [Jeremy Kemper]
749 * rake build_mysql_database grants permissions to rails@localhost. #5501 [brianegge@yahoo.com]
751 * PostgreSQL: support microsecond time resolution. #5492 [alex@msgpad.com]
753 * Add AssociationCollection#sum since the method_missing invokation has been shadowed by Enumerable#sum.
755 * Added find_or_initialize_by_X which works like find_or_create_by_X but doesn't save the newly instantiated record. [Sam Stephenson]
757 * Row locking. Provide a locking clause with the :lock finder option or true for the default "FOR UPDATE". Use the #lock! method to obtain a row lock on a single record (reloads the record with :lock => true). [Shugo Maeda]
758     # Obtain an exclusive lock on person 1 so we can safely increment visits.
759     Person.transaction do
760       # select * from people where id=1 for update
761       person = Person.find(1, :lock => true)
762       person.visits += 1
763       person.save!
764     end
766 * PostgreSQL: introduce allow_concurrency option which determines whether to use blocking or asynchronous #execute. Adapters with blocking #execute will deadlock Ruby threads. The default value is ActiveRecord::Base.allow_concurrency. [Jeremy Kemper]
768 * Use a per-thread (rather than global) transaction mutex so you may execute concurrent transactions on separate connections. [Jeremy Kemper]
770 * Change AR::Base#to_param to return a String instead of a Fixnum. Closes #5320. [Nicholas Seckar]
772 * Use explicit delegation instead of method aliasing for AR::Base.to_param -> AR::Base.id. #5299 (skaes@web.de)
774 * Refactored ActiveRecord::Base.to_xml to become a delegate for XmlSerializer, which restores sanity to the mega method. This refactoring also reinstates the opinions that type="string" is redundant and ugly and nil-differentiation is not a concern of serialization [DHH]
776 * Added simple hash conditions to find that'll just convert hash to an AND-based condition string #5143 [hcatlin@gmail.com]. Example:
778     Person.find(:all, :conditions => { :last_name => "Catlin", :status => 1 }, :limit => 2) 
780 ...is the same as:
782     Person.find(:all, :conditions => [ "last_name = ? and status = ?", "Catlin", 1 ], :limit => 2)
783   
784   This makes it easier to pass in the options from a form or otherwise outside.
785     
787 * Fixed issues with BLOB limits, charsets, and booleans for Firebird #5194, #5191, #5189 [kennethkunz@gmail.com]
789 * Fixed usage of :limit and with_scope when the association in scope is a 1:m #5208 [alex@purefiction.net]
791 * Fixed migration trouble with SQLite when NOT NULL is used in the new definition #5215 [greg@lapcominc.com]
793 * Fixed problems with eager loading and counting on SQL Server #5212 [kajism@yahoo.com]
795 * Fixed that count distinct should use the selected column even when using :include #5251 [anna@wota.jp]
797 * Fixed that :includes merged from with_scope won't cause the same association to be loaded more than once if repetition occurs in the clauses #5253 [alex@purefiction.net]
799 * Allow models to override to_xml.  #4989 [Blair Zajac <blair@orcaware.com>]
801 * PostgreSQL: don't ignore port when host is nil since it's often used to label the domain socket.  #5247 [shimbo@is.naist.jp]
803 * Records and arrays of records are bound as quoted ids. [Jeremy Kemper]
804     Foo.find(:all, :conditions => ['bar_id IN (?)', bars])
805     Foo.find(:first, :conditions => ['bar_id = ?', bar])
807 * Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH]
809 * Add a list of regexes assert_queries skips in the ActiveRecord test suite.  [Rick]
811 * Fix the has_and_belongs_to_many #create doesn't populate the join for new records.  Closes #3692 [josh@hasmanythrough.com]
813 * Provide Association Extensions access to the instance that the association is being accessed from.  
814   Closes #4433 [josh@hasmanythrough.com]
816 * Update OpenBase adaterp's maintainer's email address. Closes #5176. [Derrick Spell]
818 * Add a quick note about :select and eagerly included associations. [Rick]
820 * Add docs for the :as option in has_one associations.  Closes #5144 [cdcarter@gmail.com]
822 * Fixed that has_many collections shouldn't load the entire association to do build or create [DHH]
824 * Added :allow_nil option for aggregations #5091 [ian.w.white@gmail.com]
826 * Fix Oracle boolean support and tests. Closes #5139. [schoenm@earthlink.net]
828 * create! no longer blows up when no attributes are passed and a :create scope is in effect (e.g. foo.bars.create! failed whereas foo.bars.create!({}) didn't.) [Jeremy Kemper]
830 * Call Inflector#demodulize on the class name when eagerly including an STI model.  Closes #5077 [info@loobmedia.com]
832 * Preserve MySQL boolean column defaults when changing a column in a migration. Closes #5015. [pdcawley@bofh.org.uk] 
834 * PostgreSQL: migrations support :limit with :integer columns by mapping limit < 4 to smallint, > 4 to bigint, and anything else to integer. #2900 [keegan@thebasement.org]
836 * Dates and times interpret empty strings as nil rather than 2000-01-01. #4830 [kajism@yahoo.com]
838 * Allow :uniq => true with has_many :through associations. [Jeremy Kemper]
840 * Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.]
842 * Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com] 
844 * Replace superfluous name_to_class_name variant with camelize. [Marcel Molina Jr.]
846 * Replace alias method chaining with Module#alias_method_chain. [Marcel Molina Jr.]
848 * Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
850 * Remove duplicate fixture entry in comments.yml. Closes #4923. [Blair Zajac <blair@orcaware.com>]
852 * Update FrontBase adapter to check binding version. Closes #4920. [mlaster@metavillage.com] 
854 * New Frontbase connections don't start in auto-commit mode. Closes #4922. [mlaster@metavillage.com]
856 * When grouping, use the appropriate option key. [Marcel Molina Jr.]
858 * Only modify the sequence name in the FrontBase adapter if the FrontBase adapter is actually being used. [Marcel Molina Jr.]
860 * Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
862 * Add warning about the proper way to validate the presence of a foreign key. Closes #4147. [Francois Beausoleil <francois.beausoleil@gmail.com>]
864 * Fix syntax error in documentation. Closes #4679. [mislav@nippur.irb.hr] 
866 * Add Oracle support for CLOB inserts. Closes #4748. [schoenm@earthlink.net sandra.metz@duke.edu] 
868 * Various fixes for sqlserver_adapter (odbc statement finishing, ado schema dumper, drop index). Closes #4831. [kajism@yahoo.com]
870 * Add support for :order option to with_scope. Closes #3887. [eric.daspet@survol.net]
872 * Prettify output of schema_dumper by making things line up. Closes #4241 [Caio  Chassot <caio@v2studio.com>]
874 * Make build_postgresql_databases task make databases owned by the postgres user. Closes #4790. [mlaster@metavillage.com]
876 * Sybase Adapter type conversion cleanup. Closes #4736. [dev@metacasa.net]
878 * Fix bug where calculations with long alias names return null. [Rick]
880 * Raise error when trying to add to a has_many :through association.  Use the Join Model instead. [Rick]
882     @post.tags << @tag                  # BAD
883     @post.taggings.create(:tag => @tag) # GOOD
885 * Allow all calculations to take the :include option, not just COUNT (closes #4840) [Rick]
887 * Update inconsistent migrations documentation. #4683 [machomagna@gmail.com]
889 * Add ActiveRecord::Errors#to_xml [Jamis Buck]
891 * Properly quote index names in migrations (closes #4764) [John Long]
893 * Fix the HasManyAssociation#count method so it uses the new ActiveRecord::Base#count syntax, while maintaining backwards compatibility.  [Rick]
895 * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
897 * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
899 * DRY up association collection reader method generation. [Marcel Molina Jr.]
901 * DRY up and tweak style of the validation error object. [Marcel Molina Jr.]
903 * Add :case_sensitive option to validates_uniqueness_of (closes #3090) [Rick]
905     class Account < ActiveRecord::Base
906       validates_uniqueness_of :email, :case_sensitive => false
907     end
909 * Allow multiple association extensions with :extend option (closes #4666) [Josh Susser]
911     class Account < ActiveRecord::Base
912       has_many :people, :extend => [FindOrCreateByNameExtension, FindRecentExtension]
913     end
915     *1.15.3* (March 12th, 2007)
917     * Allow a polymorphic :source for has_many :through associations. Closes #7143 [protocool] 
919     * Consistently quote primary key column names.  #7763 [toolmantim]
921     * Fixtures: fix YAML ordered map support.  #2665 [Manuel Holtgrewe, nfbuckley]
923     * Fix has_many :through << with custom foreign keys.  #6466, #7153 [naffis, Rich Collins]
926 *1.15.2* (February 5th, 2007)
928 * Pass a range in :conditions to use the SQL BETWEEN operator.  #6974 [dcmanges]
929     Student.find(:all, :conditions => { :grade => 9..12 })
931 * Don't create instance writer methods for class attributes. [Rick]
933 * When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. [Jamis Buck]
935 * SQLServer: don't choke on strings containing 'null'.  #7083 [Jakob S]
937 * Consistently use LOWER() for uniqueness validations (rather than mixing with UPPER()) so the database can always use a functional index on the lowercased column.  #6495 [Si]
939 * MySQL: SET SQL_AUTO_IS_NULL=0 so 'where id is null' doesn't select the last inserted id.  #6778 [Jonathan Viney, timc]
941 * Fixtures use the table name and connection from set_fixture_class.  #7330 [Anthony Eden]
943 * SQLServer: quote table name in indexes query.  #2928 [keithm@infused.org]
946 *1.15.1* (January 17th, 2007)
948 * Fix nodoc breaking of adapters
951 *1.15.0* (January 16th, 2007)
953 * [DOC] clear up some ambiguity with the way has_and_belongs_to_many creates the default join table name.  #7072 [jeremymcanally]
955 * change_column accepts :default => nil. Skip column options for primary keys.  #6956, #7048 [dcmanges, Jeremy Kemper]
957 * MySQL, PostgreSQL: change_column_default quotes the default value and doesn't lose column type information.  #3987, #6664 [Jonathan Viney, manfred, altano@bigfoot.com]
959 * Oracle: create_table takes a :sequence_name option to override the 'tablename_seq' default.  #7000 [Michael Schoen]
961 * MySQL: retain SSL settings on reconnect.  #6976 [randyv2]
963 * SQLServer: handle [quoted] table names.  #6635 [rrich]
965 * acts_as_nested_set works with single-table inheritance.  #6030 [Josh Susser]
967 * PostgreSQL, Oracle: correctly perform eager finds with :limit and :order.  #4668, #7021 [eventualbuddha, Michael Schoen]
969 * Fix the Oracle adapter for serialized attributes stored in CLOBs.  Closes #6825 [mschoen, tdfowler]
971 * [DOCS] Apply more documentation for ActiveRecord Reflection.  Closes #4055 [Robby Russell]
973 * [DOCS] Document :allow_nil option of #validate_uniqueness_of. Closes #3143 [Caio Chassot]
975 * Bring the sybase adapter up to scratch for 1.2 release. [jsheets]
977 * Oracle: fix connection reset failure.  #6846 [leonlleslie]
979 * Subclass instantiation doesn't try to explicitly require the corresponding subclass.  #6840 [leei, Jeremy Kemper]
981 * fix faulty inheritance tests and that eager loading grabs the wrong inheritance column when the class of your association is an STI subclass. Closes #6859 [protocool]
983 * find supports :lock with :include. Check whether your database allows SELECT ... FOR UPDATE with outer joins before using.  #6764 [vitaly, Jeremy Kemper]
985 * Support nil and Array in :conditions => { attr => value } hashes.  #6548 [Assaf, Jeremy Kemper]
986     find(:all, :conditions => { :topic_id => [1, 2, 3], :last_read => nil }
988 * Quote ActiveSupport::Multibyte::Chars.  #6653 [Julian Tarkhanov]
990 * MySQL: detect when a NOT NULL column without a default value is misreported as default ''.  Can't detect for string, text, and binary columns since '' is a legitimate default.  #6156 [simon@redhillconsulting.com.au, obrie, Jonathan Viney, Jeremy Kemper]
992 * validates_numericality_of uses \A \Z to ensure the entire string matches rather than ^ $ which may match one valid line of a multiline string.  #5716 [Andreas Schwarz]
994 * Oracle: automatically detect the primary key.  #6594 [vesaria, Michael Schoen]
996 * Oracle: to increase performance, prefetch 100 rows and enable similar cursor sharing. Both are configurable in database.yml.  #6607 [philbogle@gmail.com, ray.fortna@jobster.com, Michael Schoen]
998 * Firebird: decimal/numeric support.  #6408 [macrnic]
1000 * Find with :include respects scoped :order.  #5850
1002 * Dynamically generate reader methods for serialized attributes.  #6362 [Stefan Kaes]
1004 * Deprecation: object transactions warning.  [Jeremy Kemper]
1006 * has_one :dependent => :nullify ignores nil associates.  #6528 [janovetz, Jeremy Kemper]
1008 * Oracle: resolve test failures, use prefetched primary key for inserts, check for null defaults, fix limited id selection for eager loading. Factor out some common methods from all adapters.  #6515 [Michael Schoen]
1010 * Make add_column use the options hash with the Sqlite Adapter. Closes #6464 [obrie]
1012 * Document other options available to migration's add_column. #6419 [grg]
1014 * MySQL: all_hashes compatibility with old MysqlRes class.  #6429, #6601 [Jeremy Kemper]
1016 * Fix has_many :through to add the appropriate conditions when going through an association using STI. Closes #5783. [Jonathan Viney]
1018 * fix select_limited_ids_list issues in postgresql, retain current behavior in other adapters [Rick]
1020 * Restore eager condition interpolation, document it's differences [Rick]
1022 * Don't rollback in teardown unless a transaction was started. Don't start a transaction in create_fixtures if a transaction is started.  #6282 [Jacob Fugal, Jeremy Kemper]
1024 * Add #delete support to has_many :through associations.  Closes #6049 [Martin Landers]
1026 * Reverted old select_limited_ids_list postgresql fix that caused issues in mysql.  Closes #5851 [Rick]
1028 * Removes the ability for eager loaded conditions to be interpolated, since there is no model instance to use as a context for interpolation. #5553 [turnip@turnipspatch.com]
1030 * Added timeout option to SQLite3 configurations to deal more gracefully with SQLite3::BusyException, now the connection can instead retry for x seconds to see if the db clears up before throwing that exception #6126 [wreese@gmail.com]
1032 * Added update_attributes! which uses save! to raise an exception if a validation error prevents saving #6192 [jonathan]
1034 * Deprecated add_on_boundary_breaking (use validates_length_of instead) #6292 [BobSilva]
1036 * The has_many create method works with polymorphic associations.  #6361 [Dan Peterson]
1038 * MySQL: introduce Mysql::Result#all_hashes to support further optimization.  #5581 [Stefan Kaes]
1040 * save! shouldn't validate twice.  #6324 [maiha, Bob Silva]
1042 * Association collections have an _ids reader method to match the existing writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values.  #1887, #5780 [Michael Schuerig]
1044 * Add an attribute reader method for ActiveRecord::Base.observers [Rick Olson]
1046 * Deprecation: count class method should be called with an options hash rather than two args for conditions and joins.  #6287 [Bob Silva]
1048 * has_one associations with a nil target may be safely marshaled.  #6279 [norbauer, Jeremy Kemper]
1050 * Duplicate the hash provided to AR::Base#to_xml to prevent unexpected side effects [Koz]
1052 * Add a :namespace option to  AR::Base#to_xml [Koz]
1054 * Deprecation tests. Remove warnings for dynamic finders and for the foo_count method if it's also an attribute. [Jeremy Kemper]
1056 * Mock Time.now for more accurate Touch mixin tests.  #6213 [Dan Peterson]
1058 * Improve yaml fixtures error reporting.  #6205 [Bruce Williams]
1060 * Rename AR::Base#quote so people can use that name in their models. #3628 [Koz]
1062 * Add deprecation warning for inferred foreign key. #6029 [Josh Susser]
1064 * Fixed the Ruby/MySQL adapter we ship with Active Record to work with the new authentication handshake that was introduced in MySQL 4.1, along with the other protocol changes made at that time #5723 [jimw@mysql.com]
1066 * Deprecation: use :dependent => :delete_all rather than :exclusively_dependent => true.  #6024 [Josh Susser]
1068 * Optimistic locking: gracefully handle nil versions, treat as zero.  #5908 [Tom Ward]
1070 * to_xml: the :methods option works on arrays of records.  #5845 [Josh Starcher]
1072 * has_many :through conditions are sanitized by the associating class.  #5971 [martin.emde@gmail.com]
1074 * Fix spurious newlines and spaces in AR::Base#to_xml output [Jamis Buck]
1076 * has_one supports the :dependent => :delete option which skips the typical callback chain and deletes the associated object directly from the database.  #5927 [Chris Mear, Jonathan Viney]
1078 * Nested subclasses are not prefixed with the parent class' table_name since they should always use the base class' table_name.  #5911 [Jonathan Viney]
1080 * SQLServer: work around bug where some unambiguous date formats are not correctly identified if the session language is set to german.  #5894 [Tom Ward, kruth@bfpi]
1082 * Clashing type columns due to a sloppy join shouldn't wreck single-table inheritance.  #5838 [Kevin Clark]
1084 * Fixtures: correct escaping of \n and \r.  #5859 [evgeny.zislis@gmail.com]
1086 * Migrations: gracefully handle missing migration files.  #5857 [eli.gordon@gmail.com]
1088 * MySQL: update test schema for MySQL 5 strict mode.  #5861 [Tom Ward]
1090 * to_xml: correct naming of included associations.  #5831 [josh.starcher@gmail.com]
1092 * Pushing a record onto a has_many :through sets the association's foreign key to the associate's primary key and adds it to the correct association.  #5815, #5829 [josh@hasmanythrough.com]
1094 * Add records to has_many :through using <<, push, and concat by creating the association record. Raise if base or associate are new records since both ids are required to create the association. #build raises since you can't associate an unsaved record. #create! takes an attributes hash and creates the associated record and its association in a transaction. [Jeremy Kemper]
1096     # Create a tagging to associate the post and tag.
1097     post.tags << Tag.find_by_name('old')
1098     post.tags.create! :name => 'general'
1100     # Would have been:
1101     post.taggings.create!(:tag => Tag.find_by_name('finally')
1102     transaction do
1103       post.taggings.create!(:tag => Tag.create!(:name => 'general'))
1104     end
1106 * Cache nil results for :included has_one associations also.  #5787 [Michael Schoen]
1108 * Fixed a bug which would cause .save to fail after trying to access a empty has_one association on a unsaved record. [Tobias Luetke]
1110 * Nested classes are given table names prefixed by the singular form of the parent's table name. [Jeremy Kemper]
1111     Example: Invoice::Lineitem is given table name invoice_lineitems
1113 * Migrations: uniquely name multicolumn indexes so you don't have to. [Jeremy Kemper]
1114     # people_active_last_name_index, people_active_deactivated_at_index
1115     add_index    :people, [:active, :last_name]
1116     add_index    :people, [:active, :deactivated_at]
1117     remove_index :people, [:active, :last_name]
1118     remove_index :people, [:active, :deactivated_at]
1120   WARNING: backward-incompatibility. Multicolumn indexes created before this
1121   revision were named using the first column name only. Now they're uniquely
1122   named using all indexed columns.
1124   To remove an old multicolumn index, remove_index :table_name, :first_column
1126 * Fix for deep includes on the same association. [richcollins@gmail.com]
1128 * Tweak fixtures so they don't try to use a non-ActiveRecord class.  [Kevin Clark]
1130 * Remove ActiveRecord::Base.reset since Dispatcher doesn't use it anymore.  [Rick Olson]
1132 * PostgreSQL: autodetected sequences work correctly with multiple schemas. Rely on the schema search_path instead of explicitly qualifying the sequence name with its schema.  #5280 [guy.naor@famundo.com]
1134 * Replace Reloadable with Reloadable::Deprecated. [Nicholas Seckar]
1136 * Cache nil results for has_one associations so multiple calls don't call the database.  Closes #5757. [Michael A. Schoen]
1138 * Don't save has_one associations unnecessarily.  #5735 [Jonathan Viney]
1140 * Refactor ActiveRecord::Base.reset_subclasses to #reset, and add global observer resetting.  [Rick Olson]
1142 * Formally deprecate the deprecated finders. [Koz]
1144 * Formally deprecate rich associations.  [Koz]
1146 * Fixed that default timezones for new / initialize should uphold utc setting #5709 [daniluk@yahoo.com]
1148 * Fix announcement of very long migration names.  #5722 [blake@near-time.com]
1150 * The exists? class method should treat a string argument as an id rather than as conditions.  #5698 [jeremy@planetargon.com]
1152 * Fixed to_xml with :include misbehaviors when invoked on array of model instances #5690 [alexkwolfe@gmail.com]
1154 * Added support for conditions on Base.exists? #5689 [josh@joshpeek.com]. Examples:
1156     assert (Topic.exists?(:author_name => "David")) 
1157           assert (Topic.exists?(:author_name => "Mary", :approved => true)) 
1158           assert (Topic.exists?(["parent_id = ?", 1]))
1160 * Schema dumper quotes date :default values. [Dave Thomas]
1162 * Calculate sum with SQL, not Enumerable on HasManyThrough Associations. [Dan Peterson]
1164 * Factor the attribute#{suffix} methods out of method_missing for easier extension. [Jeremy Kemper]
1166 * Patch sql injection vulnerability when using integer or float columns. [Jamis Buck]
1168 * Allow #count through a has_many association to accept :include.  [Dan Peterson]
1170 * create_table rdoc: suggest :id => false for habtm join tables. [Zed Shaw]
1172 * PostgreSQL: return array fields as strings. #4664 [Robby Russell]
1174 * SQLServer: added tests to ensure all database statements are closed, refactored identity_insert management code to use blocks, removed update/delete rowcount code out of execute and into update/delete, changed insert to go through execute method, removed unused quoting methods, disabled pessimistic locking tests as feature is currently unsupported, fixed RakeFile to load sqlserver specific tests whether running in ado or odbc mode, fixed support for recently added decimal types, added support for limits on integer types. #5670 [Tom Ward]
1176 * SQLServer: fix db:schema:dump case-sensitivity. #4684 [Will Rogers]
1178 * Oracle: BigDecimal support. #5667 [schoenm@earthlink.net]
1180 * Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. #5454 [robbat2@gentoo.org, work@ashleymoran.me.uk]
1182 * Firebird migrations support. #5337 [Ken Kunz <kennethkunz@gmail.com>]
1184 * PostgreSQL: create/drop as postgres user. #4790 [mail@matthewpainter.co.uk, mlaster@metavillage.com]
1186 * PostgreSQL: correctly quote the ' in pk_and_sequence_for. #5462 [tietew@tietew.net]
1188 * PostgreSQL: correctly quote microseconds in timestamps. #5641 [rick@rickbradley.com]
1190 * Clearer has_one/belongs_to model names (account has_one :user). #5632 [matt@mattmargolis.net]
1192 * Oracle: use nonblocking queries if allow_concurrency is set, fix pessimistic locking, don't guess date vs. time by default (set OracleAdapter.emulate_dates = true for the old behavior), adapter cleanup. #5635 [schoenm@earthlink.net]
1194 * Fixed a few Oracle issues: Allows Oracle's odd date handling to still work consistently within #to_xml, Passes test that hardcode insert statement by dropping the :id column, Updated RUNNING_UNIT_TESTS with Oracle instructions, Corrects method signature for #exec #5294 [schoenm@earthlink.net]
1196 * Added :group to available options for finds done on associations #5516 [mike@michaeldewey.org]
1198 * Observers also watch subclasses created after they are declared. #5535 [daniels@pronto.com.au]
1200 * Removed deprecated timestamps_gmt class methods. [Jeremy Kemper]
1202 * rake build_mysql_database grants permissions to rails@localhost. #5501 [brianegge@yahoo.com]
1204 * PostgreSQL: support microsecond time resolution. #5492 [alex@msgpad.com]
1206 * Add AssociationCollection#sum since the method_missing invokation has been shadowed by Enumerable#sum.
1208 * Added find_or_initialize_by_X which works like find_or_create_by_X but doesn't save the newly instantiated record. [Sam Stephenson]
1210 * Row locking. Provide a locking clause with the :lock finder option or true for the default "FOR UPDATE". Use the #lock! method to obtain a row lock on a single record (reloads the record with :lock => true). [Shugo Maeda]
1211     # Obtain an exclusive lock on person 1 so we can safely increment visits.
1212     Person.transaction do
1213       # select * from people where id=1 for update
1214       person = Person.find(1, :lock => true)
1215       person.visits += 1
1216       person.save!
1217     end
1219 * PostgreSQL: introduce allow_concurrency option which determines whether to use blocking or asynchronous #execute. Adapters with blocking #execute will deadlock Ruby threads. The default value is ActiveRecord::Base.allow_concurrency. [Jeremy Kemper]
1221 * Use a per-thread (rather than global) transaction mutex so you may execute concurrent transactions on separate connections. [Jeremy Kemper]
1223 * Change AR::Base#to_param to return a String instead of a Fixnum. Closes #5320. [Nicholas Seckar]
1225 * Use explicit delegation instead of method aliasing for AR::Base.to_param -> AR::Base.id. #5299 (skaes@web.de)
1227 * Refactored ActiveRecord::Base.to_xml to become a delegate for XmlSerializer, which restores sanity to the mega method. This refactoring also reinstates the opinions that type="string" is redundant and ugly and nil-differentiation is not a concern of serialization [DHH]
1229 * Added simple hash conditions to find that'll just convert hash to an AND-based condition string #5143 [hcatlin@gmail.com]. Example:
1231     Person.find(:all, :conditions => { :last_name => "Catlin", :status => 1 }, :limit => 2) 
1233 ...is the same as:
1235     Person.find(:all, :conditions => [ "last_name = ? and status = ?", "Catlin", 1 ], :limit => 2)
1237   This makes it easier to pass in the options from a form or otherwise outside.
1240 * Fixed issues with BLOB limits, charsets, and booleans for Firebird #5194, #5191, #5189 [kennethkunz@gmail.com]
1242 * Fixed usage of :limit and with_scope when the association in scope is a 1:m #5208 [alex@purefiction.net]
1244 * Fixed migration trouble with SQLite when NOT NULL is used in the new definition #5215 [greg@lapcominc.com]
1246 * Fixed problems with eager loading and counting on SQL Server #5212 [kajism@yahoo.com]
1248 * Fixed that count distinct should use the selected column even when using :include #5251 [anna@wota.jp]
1250 * Fixed that :includes merged from with_scope won't cause the same association to be loaded more than once if repetition occurs in the clauses #5253 [alex@purefiction.net]
1252 * Allow models to override to_xml.  #4989 [Blair Zajac <blair@orcaware.com>]
1254 * PostgreSQL: don't ignore port when host is nil since it's often used to label the domain socket.  #5247 [shimbo@is.naist.jp]
1256 * Records and arrays of records are bound as quoted ids. [Jeremy Kemper]
1257     Foo.find(:all, :conditions => ['bar_id IN (?)', bars])
1258     Foo.find(:first, :conditions => ['bar_id = ?', bar])
1260 * Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH]
1262 * Add a list of regexes assert_queries skips in the ActiveRecord test suite.  [Rick]
1264 * Fix the has_and_belongs_to_many #create doesn't populate the join for new records.  Closes #3692 [josh@hasmanythrough.com]
1266 * Provide Association Extensions access to the instance that the association is being accessed from.  
1267   Closes #4433 [josh@hasmanythrough.com]
1269 * Update OpenBase adaterp's maintainer's email address. Closes #5176. [Derrick Spell]
1271 * Add a quick note about :select and eagerly included associations. [Rick]
1273 * Add docs for the :as option in has_one associations.  Closes #5144 [cdcarter@gmail.com]
1275 * Fixed that has_many collections shouldn't load the entire association to do build or create [DHH]
1277 * Added :allow_nil option for aggregations #5091 [ian.w.white@gmail.com]
1279 * Fix Oracle boolean support and tests. Closes #5139. [schoenm@earthlink.net]
1281 * create! no longer blows up when no attributes are passed and a :create scope is in effect (e.g. foo.bars.create! failed whereas foo.bars.create!({}) didn't.) [Jeremy Kemper]
1283 * Call Inflector#demodulize on the class name when eagerly including an STI model.  Closes #5077 [info@loobmedia.com]
1285 * Preserve MySQL boolean column defaults when changing a column in a migration. Closes #5015. [pdcawley@bofh.org.uk] 
1287 * PostgreSQL: migrations support :limit with :integer columns by mapping limit < 4 to smallint, > 4 to bigint, and anything else to integer. #2900 [keegan@thebasement.org]
1289 * Dates and times interpret empty strings as nil rather than 2000-01-01. #4830 [kajism@yahoo.com]
1291 * Allow :uniq => true with has_many :through associations. [Jeremy Kemper]
1293 * Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.]
1295 * Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com] 
1297 * Remove duplicate fixture entry in comments.yml. Closes #4923. [Blair Zajac <blair@orcaware.com>]
1299 * When grouping, use the appropriate option key. [Marcel Molina Jr.]
1301 * Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
1303 * Add warning about the proper way to validate the presence of a foreign key. Closes #4147. [Francois Beausoleil <francois.beausoleil@gmail.com>]
1305 * Fix syntax error in documentation. Closes #4679. [mislav@nippur.irb.hr] 
1307 * Add Oracle support for CLOB inserts. Closes #4748. [schoenm@earthlink.net sandra.metz@duke.edu] 
1309 * Various fixes for sqlserver_adapter (odbc statement finishing, ado schema dumper, drop index). Closes #4831. [kajism@yahoo.com]
1311 * Add support for :order option to with_scope. Closes #3887. [eric.daspet@survol.net]
1313 * Prettify output of schema_dumper by making things line up. Closes #4241 [Caio  Chassot <caio@v2studio.com>]
1315 * Make build_postgresql_databases task make databases owned by the postgres user. Closes #4790. [mlaster@metavillage.com]
1317 * Sybase Adapter type conversion cleanup. Closes #4736. [dev@metacasa.net]
1319 * Fix bug where calculations with long alias names return null. [Rick]
1321 * Raise error when trying to add to a has_many :through association.  Use the Join Model instead. [Rick]
1323     @post.tags << @tag                  # BAD
1324     @post.taggings.create(:tag => @tag) # GOOD
1326 * Allow all calculations to take the :include option, not just COUNT (closes #4840) [Rick]
1328 * Add ActiveRecord::Errors#to_xml [Jamis Buck]
1330 * Properly quote index names in migrations (closes #4764) [John Long]
1332 * Fix the HasManyAssociation#count method so it uses the new ActiveRecord::Base#count syntax, while maintaining backwards compatibility.  [Rick]
1334 * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
1336 * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
1338 * Add :case_sensitive option to validates_uniqueness_of (closes #3090) [Rick]
1340     class Account < ActiveRecord::Base
1341       validates_uniqueness_of :email, :case_sensitive => false
1342     end
1344 * Allow multiple association extensions with :extend option (closes #4666) [Josh Susser]
1346     class Account < ActiveRecord::Base
1347       has_many :people, :extend => [FindOrCreateByNameExtension, FindRecentExtension]
1348     end
1351 *1.14.4* (August 8th, 2006)
1353 * Add warning about the proper way to validate the presence of a foreign key.  #4147 [Francois Beausoleil <francois.beausoleil@gmail.com>]
1355 * Fix syntax error in documentation. #4679 [mislav@nippur.irb.hr] 
1357 * Update inconsistent migrations documentation. #4683 [machomagna@gmail.com]
1360 *1.14.3* (June 27th, 2006)
1362 * Fix announcement of very long migration names.  #5722 [blake@near-time.com]
1364 * Update callbacks documentation. #3970 [Robby Russell <robby@planetargon.com>]
1366 * Properly quote index names in migrations (closes #4764) [John Long]
1368 * Ensure that Associations#include_eager_conditions? checks both scoped and explicit conditions [Rick]
1370 * Associations#select_limited_ids_list adds the ORDER BY columns to the SELECT DISTINCT List for postgresql. [Rick]
1373 *1.14.2* (April 9th, 2006)
1375 * Fixed calculations for the Oracle Adapter (closes #4626) [Michael Schoen]
1378 *1.14.1* (April 6th, 2006)
1380 * Fix type_name_with_module to handle type names that begin with '::'. Closes #4614. [Nicholas Seckar]
1382 * Fixed that that multiparameter assignment doesn't work with aggregations (closes #4620) [Lars Pind]
1384 * Enable Limit/Offset in Calculations (closes #4558) [lmarlow@yahoo.com]
1386 * Fixed that loading including associations returns all results if Load IDs For Limited Eager Loading returns none (closes #4528) [Rick]
1388 * Fixed HasManyAssociation#find bugs when :finder_sql is set #4600 [lagroue@free.fr]
1390 * Allow AR::Base#respond_to? to behave when @attributes is nil [zenspider]
1392 * Support eager includes when going through a polymorphic has_many association. [Rick]
1394 * Added support for eagerly including polymorphic has_one associations. (closes #4525) [Rick]
1396     class Post < ActiveRecord::Base
1397       has_one :tagging, :as => :taggable
1398     end
1400     Post.find :all, :include => :tagging
1402 * Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
1404 * Added support for going through a polymorphic has_many association: (closes #4401) [Rick]
1406     class PhotoCollection < ActiveRecord::Base
1407       has_many :photos, :as => :photographic
1408       belongs_to :firm
1409     end
1411     class Firm < ActiveRecord::Base
1412       has_many :photo_collections
1413       has_many :photos, :through => :photo_collections
1414     end
1416 * Multiple fixes and optimizations in PostgreSQL adapter, allowing ruby-postgres gem to work properly. [ruben.nine@gmail.com]
1418 * Fixed that AssociationCollection#delete_all should work even if the records of the association are not loaded yet. [Florian Weber]
1420 * Changed those private ActiveRecord methods to take optional third argument :auto instead of nil for performance optimizations.  (closes #4456) [Stefan]
1422 * Private ActiveRecord methods add_limit!, add_joins!, and add_conditions! take an OPTIONAL third argument 'scope' (closes #4456) [Rick]
1424 * DEPRECATED: Using additional attributes on has_and_belongs_to_many associations. Instead upgrade your association to be a real join model [DHH]
1426 * Fixed that records returned from has_and_belongs_to_many associations with additional attributes should be marked as read only (fixes #4512) [DHH]
1428 * Do not implicitly mark recordss of has_many :through as readonly but do mark habtm records as readonly (eventually only on join tables without rich attributes). [Marcel Mollina Jr.]
1430 * Fixed broken OCIAdapter #4457 [schoenm@earthlink.net]
1433 *1.14.0* (March 27th, 2006)
1435 * Replace 'rescue Object' with a finer grained rescue. Closes #4431. [Nicholas Seckar]
1437 * Fixed eager loading so that an aliased table cannot clash with a has_and_belongs_to_many join table [Rick]
1439 * Add support for :include to with_scope [andrew@redlinesoftware.com]
1441 * Support the use of public synonyms with the Oracle adapter; required ruby-oci8 v0.1.14 #4390 [schoenm@earthlink.net]
1443 * Change periods (.) in table aliases to _'s.  Closes #4251 [jeff@ministrycentered.com]
1445 * Changed has_and_belongs_to_many join to INNER JOIN for Mysql 3.23.x.  Closes #4348 [Rick]
1447 * Fixed issue that kept :select options from being scoped [Rick]
1449 * Fixed db_schema_import when binary types are present #3101 [DHH]
1451 * Fixed that MySQL enums should always be returned as strings #3501 [DHH]
1453 * Change has_many :through to use the :source option to specify the source association.  :class_name is now ignored. [Rick Olson]
1455     class Connection < ActiveRecord::Base
1456       belongs_to :user
1457       belongs_to :channel
1458     end
1460     class Channel < ActiveRecord::Base
1461       has_many :connections
1462       has_many :contacts, :through => :connections, :class_name => 'User' # OLD
1463       has_many :contacts, :through => :connections, :source => :user      # NEW
1464     end
1466 * Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed #4350 [contact@maik-schmidt.de]
1468 * Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]
1470   In this example, :include => false disables the default eager association from loading.  :select changes the standard
1471   select clause.  :joins specifies a join that is added to the end of the has_many :through query.
1473     class Post < ActiveRecord::Base
1474       has_many :tags, :through => :taggings, :include => :tagging do
1475         def add_joins_and_select
1476           find :all, :select => 'tags.*, authors.id as author_id', :include => false,
1477             :joins => 'left outer join posts on taggings.taggable_id = posts.id left outer join authors on posts.author_id = authors.id'
1478         end
1479       end
1480     end
1482 * Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
1484 * Don't classify the has_one class when eager loading, it is already singular. Add tests. (closes #4117) [jonathan@bluewire.net.nz]
1486 * Quit ignoring default :include options in has_many :through calls [Mark James]
1488 * Allow has_many :through associations to find the source association by setting a custom class (closes #4307) [jonathan@bluewire.net.nz]
1490 * Eager Loading support added for has_many :through => :has_many associations (see below).  [Rick Olson]
1492 * Allow has_many :through to work on has_many associations (closes #3864) [sco@scottraymond.net]  Example:
1494     class Firm < ActiveRecord::Base
1495       has_many :clients
1496       has_many :invoices, :through => :clients
1497     end
1499     class Client < ActiveRecord::Base
1500       belongs_to :firm
1501       has_many   :invoices
1502     end
1504     class Invoice < ActiveRecord::Base
1505       belongs_to :client
1506     end
1508 * Raise error when trying to select many polymorphic objects with has_many :through or :include (closes #4226) [josh@hasmanythrough.com]
1510 * Fixed has_many :through to include :conditions set on the :through association. closes #4020 [jonathan@bluewire.net.nz]
1512 * Fix that has_many :through honors the foreign key set by the belongs_to association in the join model (closes #4259) [andylien@gmail.com / Rick]
1514 * SQL Server adapter gets some love #4298 [rtomayko@gmail.com]
1516 * Added OpenBase database adapter that builds on top of the http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported #3528 [derrickspell@cdmplus.com]
1518 * Rework table aliasing to account for truncated table aliases.  Add smarter table aliasing when doing eager loading of STI associations. This allows you to use the association name in the order/where clause. [Jonathan Viney / Rick Olson] #4108 Example (SpecialComment is using STI):
1520     Author.find(:all, :include => { :posts => :special_comments }, :order => 'special_comments.body')
1522 * Add AbstractAdapter#table_alias_for to create table aliases according to the rules of the current adapter. [Rick]
1524 * Provide access to the underlying database connection through Adapter#raw_connection. Enables the use of db-specific methods without complicating the adapters. #2090 [Koz]
1526 * Remove broken attempts at handling columns with a default of 'now()' in the postgresql adapter. #2257 [Koz]
1528 * Added connection#current_database that'll return of the current database (only works in MySQL, SQL Server, and Oracle so far -- please help implement for the rest of the adapters) #3663 [Tom ward]
1530 * Fixed that Migration#execute would have the table name prefix appended to its query #4110 [mark.imbriaco@pobox.com]
1532 * Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, etc.) [Jamis Buck]
1534 * Use association's :conditions when eager loading. [jeremyevans0@gmail.com] #4144
1536 * Alias the has_and_belongs_to_many join table on eager includes. #4106 [jeremyevans0@gmail.com]
1538   This statement would normally error because the projects_developers table is joined twice, and therefore joined_on would be ambiguous.
1540     Developer.find(:all, :include => {:projects => :developers}, :conditions => 'join_project_developers.joined_on IS NOT NULL')
1542 * Oracle adapter gets some love #4230 [schoenm@earthlink.net]
1544     * Changes :text to CLOB rather than BLOB [Moses Hohman]
1545     * Fixes an issue with nil numeric length/scales (several)
1546     * Implements support for XMLTYPE columns [wilig / Kubo Takehiro]
1547     * Tweaks a unit test to get it all green again
1548     * Adds support for #current_database
1550 * Added Base.abstract_class? that marks which classes are not part of the Active Record hierarchy #3704 [Rick Olson]
1552     class CachedModel < ActiveRecord::Base
1553       self.abstract_class = true
1554     end
1556     class Post < CachedModel
1557     end
1559     CachedModel.abstract_class?
1560     => true
1562     Post.abstract_class?
1563     => false
1565     Post.base_class
1566     => Post
1568     Post.table_name
1569     => 'posts'
1571 * Allow :dependent options to be used with polymorphic joins. #3820 [Rick Olson]
1573     class Foo < ActiveRecord::Base
1574       has_many :attachments, :as => :attachable, :dependent => :delete_all
1575     end
1577 * Nicer error message on has_many :through when :through reflection can not be found. #4042 [court3nay@gmail.com]
1579 * Upgrade to Transaction::Simple 1.3 [Jamis Buck]
1581 * Catch FixtureClassNotFound when using instantiated fixtures on a fixture that has no ActiveRecord model [Rick Olson]
1583 * Allow ordering of calculated results and/or grouped fields in calculations [solo@gatelys.com]
1585 * Make ActiveRecord::Base#save! return true instead of nil on success.  #4173 [johan@johansorensen.com]
1587 * Dynamically set allow_concurrency.  #4044 [Stefan Kaes]
1589 * Added Base#to_xml that'll turn the current record into a XML representation [DHH]. Example:
1591     topic.to_xml
1593   ...returns:
1595     <?xml version="1.0" encoding="UTF-8"?>
1596     <topic>
1597       <title>The First Topic</title>
1598       <author-name>David</author-name>
1599       <id type="integer">1</id>
1600       <approved type="boolean">false</approved>
1601       <replies-count type="integer">0</replies-count>
1602       <bonus-time type="datetime">2000-01-01 08:28:00</bonus-time>
1603       <written-on type="datetime">2003-07-16 09:28:00</written-on>
1604       <content>Have a nice day</content>
1605       <author-email-address>david@loudthinking.com</author-email-address>
1606       <parent-id></parent-id>
1607       <last-read type="date">2004-04-15</last-read>
1608     </topic>
1610   ...and you can configure with:
1612     topic.to_xml(:skip_instruct => true, :except => [ :id, bonus_time, :written_on, replies_count ])
1614   ...that'll return:
1616     <topic>
1617       <title>The First Topic</title>
1618       <author-name>David</author-name>
1619       <approved type="boolean">false</approved>
1620       <content>Have a nice day</content>
1621       <author-email-address>david@loudthinking.com</author-email-address>
1622       <parent-id></parent-id>
1623       <last-read type="date">2004-04-15</last-read>
1624     </topic>
1626   You can even do load first-level associations as part of the document:
1628     firm.to_xml :include => [ :account, :clients ]
1630   ...that'll return something like:
1632     <?xml version="1.0" encoding="UTF-8"?>
1633     <firm>
1634       <id type="integer">1</id>
1635       <rating type="integer">1</rating>
1636       <name>37signals</name>
1637       <clients>
1638         <client>
1639           <rating type="integer">1</rating>
1640           <name>Summit</name>
1641         </client>
1642         <client>
1643           <rating type="integer">1</rating>
1644           <name>Microsoft</name>
1645         </client>
1646       </clients>
1647       <account>
1648         <id type="integer">1</id>
1649         <credit-limit type="integer">50</credit-limit>
1650       </account>
1651     </firm>  
1653 * Allow :counter_cache to take a column name for custom counter cache columns [Jamis Buck]
1655 * Documentation fixes for :dependent [robby@planetargon.com]
1657 * Stop the MySQL adapter crashing when views are present. #3782 [Jonathan Viney]
1659 * Don't classify the belongs_to class, it is already singular #4117 [keithm@infused.org]
1661 * Allow set_fixture_class to take Classes instead of strings for a class in a module.  Raise FixtureClassNotFound if a fixture can't load.  [Rick Olson]
1663 * Fix quoting of inheritance column for STI eager loading #4098 [Jonathan Viney <jonathan@bluewire.net.nz>]
1665 * Added smarter table aliasing for eager associations for multiple self joins #3580 [Rick Olson]
1667     * The first time a table is referenced in a join, no alias is used.
1668     * After that, the parent class name and the reflection name are used.
1670         Tree.find(:all, :include => :children) # LEFT OUTER JOIN trees AS tree_children ...
1672     * Any additional join references get a numerical suffix like '_2', '_3', etc.
1674 * Fixed eager loading problems with single-table inheritance #3580 [Rick Olson]. Post.find(:all, :include => :special_comments) now returns all posts, and any special comments that the posts may have. And made STI work with has_many :through and polymorphic belongs_to.
1676 * Added cascading eager loading that allows for queries like Author.find(:all, :include=> { :posts=> :comments }), which will fetch all authors, their posts, and the comments belonging to those posts in a single query (using LEFT OUTER JOIN) #3913 [anna@wota.jp]. Examples:
1678     # cascaded in two levels
1679     >> Author.find(:all, :include=>{:posts=>:comments})
1680     => authors
1681          +- posts
1682               +- comments
1684     # cascaded in two levels and normal association
1685     >> Author.find(:all, :include=>[{:posts=>:comments}, :categorizations])
1686     => authors
1687          +- posts
1688               +- comments
1689          +- categorizations
1691     # cascaded in two levels with two has_many associations
1692     >> Author.find(:all, :include=>{:posts=>[:comments, :categorizations]})
1693     => authors
1694          +- posts
1695               +- comments
1696               +- categorizations
1698     # cascaded in three levels
1699     >> Company.find(:all, :include=>{:groups=>{:members=>{:favorites}}})
1700     => companies
1701          +- groups
1702               +- members
1703                    +- favorites
1705 * Make counter cache work when replacing an association #3245 [eugenol@gmail.com]
1707 * Make migrations verbose [Jamis Buck]
1709 * Make counter_cache work with polymorphic belongs_to [Jamis Buck]
1711 * Fixed that calling HasOneProxy#build_model repeatedly would cause saving to happen #4058 [anna@wota.jp]
1713 * Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) #3765 [John Sheets]. It's almost completely Active Record compliant (including migrations), but has the following caveats:
1715     * Does not support DATE SQL column types; use DATETIME instead.
1716     * Date columns on HABTM join tables are returned as String, not Time.
1717     * Insertions are potentially broken for :polymorphic join tables
1718     * BLOB column access not yet fully supported
1720 * Clear stale, cached connections left behind by defunct threads. [Jeremy Kemper]
1722 * CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false.  Most AR usage is in single-threaded applications. [Jeremy Kemper]
1724 * Renamed the "oci" adapter to "oracle", but kept the old name as an alias #4017 [schoenm@earthlink.net]
1726 * Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's #1861, #2477 [DHH]
1728 * Speed up class -> connection caching and stale connection verification.  #3979 [Stefan Kaes]
1730 * Add set_fixture_class to allow the use of table name accessors with models which use set_table_name. [Kevin Clark]
1732 * Added that fixtures to placed in subdirectories of the main fixture files are also loaded #3937 [dblack@wobblini.net]
1734 * Define attribute query methods to avoid method_missing calls. #3677 [jonathan@bluewire.net.nz]
1736 * ActiveRecord::Base.remove_connection explicitly closes database connections and doesn't corrupt the connection cache. Introducing the disconnect! instance method for the PostgreSQL, MySQL, and SQL Server adapters; implementations for the others are welcome.  #3591 [Simon Stapleton, Tom Ward]
1738 * Added support for nested scopes #3407 [anna@wota.jp]. Examples:
1740     Developer.with_scope(:find => { :conditions => "salary > 10000", :limit => 10 }) do
1741       Developer.find(:all)     # => SELECT * FROM developers WHERE (salary > 10000) LIMIT 10
1743       # inner rule is used. (all previous parameters are ignored)
1744       Developer.with_exclusive_scope(:find => { :conditions => "name = 'Jamis'" }) do
1745         Developer.find(:all)   # => SELECT * FROM developers WHERE (name = 'Jamis')
1746       end
1748       # parameters are merged
1749       Developer.with_scope(:find => { :conditions => "name = 'Jamis'" }) do
1750         Developer.find(:all)   # => SELECT * FROM developers WHERE (( salary > 10000 ) AND ( name = 'Jamis' )) LIMIT 10
1751       end
1752     end
1754 * Fixed db2 connection with empty user_name and auth options #3622 [phurley@gmail.com]
1756 * Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes #3699 [Masao Mutoh]
1758 * Fixed that reflections would bleed across class boundaries in single-table inheritance setups #3796 [lars@pind.com]
1760 * Added calculations: Base.count, Base.average, Base.sum, Base.minimum, Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson]. Examples:
1762     Person.average :age
1763     Person.minimum :age
1764     Person.maximum :age
1765     Person.sum :salary, :group => :last_name
1767 * Renamed Errors#count to Errors#size but kept an alias for the old name (and included an alias for length too) #3920 [contact@lukeredpath.co.uk]
1769 * Reflections don't attempt to resolve module nesting of association classes. Simplify type computation. [Jeremy Kemper]
1771 * Improved the Oracle OCI Adapter with better performance for column reflection (from #3210), fixes to migrations (from #3476 and #3742), tweaks to unit tests (from #3610), and improved documentation (from #2446) #3879 [Aggregated by schoenm@earthlink.net]
1773 * Fixed that the schema_info table used by ActiveRecord::Schema.define should respect table pre- and suffixes #3834 [rubyonrails@atyp.de]
1775 * Added :select option to Base.count that'll allow you to select something else than * to be counted on. Especially important for count queries using DISTINCT #3839 [skaes]
1777 * Correct syntax error in mysql DDL,  and make AAACreateTablesTest run first [Bob Silva]
1779 * Allow :include to be used with has_many :through associations #3611 [Michael Schoen]
1781 * PostgreSQL: smarter schema dumps using pk_and_sequence_for(table).  #2920 [Blair Zajac]
1783 * SQLServer: more compatible limit/offset emulation.  #3779 [Tom Ward]
1785 * Polymorphic join support for has_one associations (has_one :foo, :as => :bar)  #3785 [Rick Olson]
1787 * PostgreSQL: correctly parse negative integer column defaults.  #3776 [bellis@deepthought.org]
1789 * Fix problems with count when used with :include [Jeremy Hopple and Kevin Clark]
1791 * ActiveRecord::RecordInvalid now states which validations failed in its default error message [Tobias Luetke]
1793 * Using AssociationCollection#build with arrays of hashes should call build, not create [DHH]
1795 * Remove definition of reloadable? from ActiveRecord::Base to make way for new Reloadable code. [Nicholas Seckar]
1797 * Fixed schema handling for DB2 adapter that didn't work: an initial schema could be set, but it wasn't used when getting tables and indexes #3678 [Maik Schmidt]
1799 * Support the :column option for remove_index with the PostgreSQL adapter. #3661 [shugo@ruby-lang.org]
1801 * Add documentation for add_index and remove_index. #3600 [Manfred Stienstra <m.stienstra@fngtps.com>]
1803 * If the OCI library is not available, raise an exception indicating as much. #3593 [schoenm@earthlink.net]
1805 * Add explicit :order in finder tests as postgresql orders results differently by default. #3577. [Rick Olson]
1807 * Make dynamic finders honor additional passed in :conditions. #3569 [Oleg Pudeyev <pudeyo@rpi.edu>, Marcel Molina Jr.]
1809 * Show a meaningful error when the DB2 adapter cannot be loaded due to missing dependencies. [Nicholas Seckar]
1811 * Make .count work for has_many associations with multi line finder sql [schoenm@earthlink.net]
1813 * Add AR::Base.base_class for querying the ancestor AR::Base subclass [Jamis Buck]
1815 * Allow configuration of the column used for optimistic locking [wilsonb@gmail.com]
1817 * Don't hardcode 'id' in acts as list.  [ror@philippeapril.com]
1819 * Fix date errors for SQLServer in association tests. #3406 [kevin.clark@gmal.com]
1821 * Escape database name in MySQL adapter when creating and dropping databases. #3409 [anna@wota.jp]
1823 * Disambiguate table names for columns in validates_uniquness_of's WHERE clause. #3423 [alex.borovsky@gmail.com]
1825 * .with_scope imposed create parameters now bypass attr_protected [Tobias Luetke]
1827 * Don't raise an exception when there are more keys than there are named bind variables when sanitizing conditions. [Marcel Molina Jr.]
1829 * Multiple enhancements and adjustments to DB2 adaptor. #3377 [contact@maik-schmidt.de]
1831 * Sanitize scoped conditions. [Marcel Molina Jr.]
1833 * Added option to Base.reflection_of_all_associations to specify a specific association to scope the call. For example Base.reflection_of_all_associations(:has_many) [DHH]
1835 * Added ActiveRecord::SchemaDumper.ignore_tables which tells SchemaDumper which tables to ignore. Useful for tables with funky column like the ones required for tsearch2. [TobiasLuetke]
1837 * SchemaDumper now doesn't fail anymore when there are unknown column types in the schema. Instead the table is ignored and a Comment is left in the schema.rb. [TobiasLuetke]
1839 * Fixed that saving a model with multiple habtm associations would only save the first one.  #3244 [yanowitz-rubyonrails@quantumfoam.org, Florian Weber]
1841 * Fix change_column to work with PostgreSQL 7.x and 8.x.  #3141 [wejn@box.cz, Rick Olson, Scott Barron] 
1843 * removed :piggyback in favor of just allowing :select on :through associations. [Tobias Luetke] 
1845 * made method missing delegation to class methods on relation target work on :through associations. [Tobias Luetke] 
1847 * made .find() work on :through relations. [Tobias Luetke] 
1849 * Fix typo in association docs. #3296. [Blair Zajac]
1851 * Fixed :through relations when using STI inherited classes would use the inherited class's name as foreign key on the join model [Tobias Luetke] 
1853 *1.13.2* (December 13th, 2005)
1855 * Become part of Rails 1.0
1857 * MySQL: allow encoding option for mysql.rb driver.  [Jeremy Kemper]
1859 * Added option inheritance for find calls on has_and_belongs_to_many and has_many assosociations [DHH]. Example:
1861     class Post
1862       has_many :recent_comments, :class_name => "Comment", :limit => 10, :include => :author
1863     end
1865     post.recent_comments.find(:all) # Uses LIMIT 10 and includes authors
1866     post.recent_comments.find(:all, :limit => nil) # Uses no limit but include authors
1867     post.recent_comments.find(:all, :limit => nil, :include => nil) # Uses no limit and doesn't include authors
1869 * Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH]
1871 * MySQL: fixes for the bundled mysql.rb driver.  #3160 [Justin Forder]
1873 * SQLServer: fix obscure optimistic locking bug.  #3068 [kajism@yahoo.com]
1875 * SQLServer: support uniqueidentifier columns.  #2930 [keithm@infused.org]
1877 * SQLServer: cope with tables names qualified by owner.  #3067 [jeff@ministrycentered.com]
1879 * SQLServer: cope with columns with "desc" in the name.  #1950 [Ron Lusk, Ryan Tomayko]
1881 * SQLServer: cope with primary keys with "select" in the name.  #3057 [rdifrango@captechventures.com]
1883 * Oracle: active? performs a select instead of a commit.  #3133 [Michael Schoen]
1885 * MySQL: more robust test for nullified result hashes.  #3124 [Stefan Kaes]
1887 * Reloading an instance refreshes its aggregations as well as its associations.  #3024 [François Beausoleil]
1889 * Fixed that using :include together with :conditions array in Base.find would cause NoMethodError #2887 [Paul Hammmond]
1891 * PostgreSQL: more robust sequence name discovery.  #3087 [Rick Olson]
1893 * Oracle: use syntax compatible with Oracle 8.  #3131 [Michael Schoen]
1895 * MySQL: work around ruby-mysql/mysql-ruby inconsistency with mysql.stat.  Eliminate usage of mysql.ping because it doesn't guarantee reconnect.  Explicitly close and reopen the connection instead.  [Jeremy Kemper]
1897 * Added preliminary support for polymorphic associations [DHH]
1899 * Added preliminary support for join models [DHH]
1901 * Allow validate_uniqueness_of to be scoped by more than just one column.  #1559. [jeremy@jthopple.com, Marcel Molina Jr.]
1903 * Firebird: active? and reconnect! methods for handling stale connections.  #428 [Ken Kunz <kennethkunz@gmail.com>]
1905 * Firebird: updated for FireRuby 0.4.0.  #3009 [Ken Kunz <kennethkunz@gmail.com>]
1907 * MySQL and PostgreSQL: active? compatibility with the pure-Ruby driver.  #428 [Jeremy Kemper]
1909 * Oracle: active? check pings the database rather than testing the last command status.  #428 [Michael Schoen]
1911 * SQLServer: resolve column aliasing/quoting collision when using limit or offset in an eager find.  #2974 [kajism@yahoo.com]
1913 * Reloading a model doesn't lose track of its connection.  #2996 [junk@miriamtech.com, Jeremy Kemper]
1915 * Fixed bug where using update_attribute after pushing a record to a habtm association of the object caused duplicate rows in the join table. #2888 [colman@rominato.com, Florian Weber, Michael Schoen]
1917 * MySQL, PostgreSQL: reconnect! also reconfigures the connection.  Otherwise, the connection 'loses' its settings if it times out and is reconnected.  #2978 [Shugo Maeda]
1919 * has_and_belongs_to_many: use JOIN instead of LEFT JOIN.  [Jeremy Kemper]
1921 * MySQL: introduce :encoding option to specify the character set for client, connection, and results.  Only available for MySQL 4.1 and later with the mysql-ruby driver.  Do SHOW CHARACTER SET in mysql client to see available encodings.  #2975 [Shugo Maeda]
1923 * Add tasks to create, drop and rebuild the MySQL and PostgreSQL test  databases. [Marcel Molina Jr.]
1925 * Correct boolean handling in generated reader methods.  #2945 [don.park@gmail.com, Stefan Kaes]
1927 * Don't generate read methods for columns whose names are not valid ruby method names.  #2946 [Stefan Kaes]
1929 * Document :force option to create_table.  #2921 [Blair Zajac <blair@orcaware.com>]
1931 * Don't add the same conditions twice in has_one finder sql.  #2916 [Jeremy Evans]
1933 * Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
1935 * Introducing the Firebird adapter.  Quote columns and use attribute_condition more consistently.  Setup guide: http://wiki.rubyonrails.com/rails/pages/Firebird+Adapter  #1874 [Ken Kunz <kennethkunz@gmail.com>]
1937 * SQLServer: active? and reconnect! methods for handling stale connections.  #428 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
1939 * Associations handle case-equality more consistently: item.parts.is_a?(Array) and item.parts === Array.  #1345 [MarkusQ@reality.com]
1941 * SQLServer: insert uses given primary key value if not nil rather than SELECT @@IDENTITY.  #2866 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
1943 * Oracle: active? and reconnect! methods for handling stale connections.  Optionally retry queries after reconnect.  #428 [Michael Schoen <schoenm@earthlink.net>]
1945 * Correct documentation for Base.delete_all.  #1568 [Newhydra]
1947 * Oracle: test case for column default parsing.  #2788 [Michael Schoen <schoenm@earthlink.net>]
1949 * Update documentation for Migrations.  #2861 [Tom Werner <tom@cube6media.com>]
1951 * When AbstractAdapter#log rescues an exception, attempt to detect and reconnect to an inactive database connection.  Connection adapter must respond to the active? and reconnect! instance methods.  Initial support for PostgreSQL, MySQL, and SQLite.  Make certain that all statements which may need reconnection are performed within a logged block: for example, this means no avoiding log(sql, name) { } if @logger.nil?  #428 [Jeremy Kemper]
1953 * Oracle: Much faster column reflection.  #2848 [Michael Schoen <schoenm@earthlink.net>]
1955 * Base.reset_sequence_name analogous to reset_table_name (mostly useful for testing).  Base.define_attr_method allows nil values.  [Jeremy Kemper]
1957 * PostgreSQL: smarter sequence name defaults, stricter last_insert_id, warn on pk without sequence.  [Jeremy Kemper]
1959 * PostgreSQL: correctly discover custom primary key sequences.  #2594 [Blair Zajac <blair@orcaware.com>, meadow.nnick@gmail.com, Jeremy Kemper]
1961 * SQLServer: don't report limits for unsupported field types.  #2835 [Ryan Tomayko]
1963 * Include the Enumerable module in ActiveRecord::Errors.  [Rick Bradley <rick@rickbradley.com>]
1965 * Add :group option, correspond to GROUP BY, to the find method and to the has_many association.  #2818 [rubyonrails@atyp.de]
1967 * Don't cast nil or empty strings to a dummy date.  #2789 [Rick Bradley <rick@rickbradley.com>]
1969 * acts_as_list plays nicely with inheritance by remembering the class which declared it.  #2811 [rephorm@rephorm.com]
1971 * Fix sqlite adaptor's detection of missing dbfile or database declaration. [Nicholas Seckar]
1973 * Fixed acts_as_list for definitions without an explicit :order #2803 [jonathan@bluewire.net.nz]
1975 * Upgrade bundled ruby-mysql 0.2.4 with mysql411 shim (see #440) to ruby-mysql 0.2.6 with a patchset for 4.1 protocol support.  Local change [301] is now a part of the main driver; reapplied local change [2182].  Removed GC.start from Result.free.  [tommy@tmtm.org, akuroda@gmail.com, Doug Fales <doug.fales@gmail.com>, Jeremy Kemper]
1977 * Correct handling of complex order clauses with SQL Server limit emulation.  #2770 [Tom Ward <tom@popdog.net>, Matt B.]
1979 * Correct whitespace problem in Oracle default column value parsing.  #2788 [rick@rickbradley.com]
1981 * Destroy associated has_and_belongs_to_many records after all before_destroy callbacks but before destroy.  This allows you to act on the habtm association as you please while preserving referential integrity.  #2065 [larrywilliams1@gmail.com, sam.kirchmeier@gmail.com, elliot@townx.org, Jeremy Kemper]
1983 * Deprecate the old, confusing :exclusively_dependent option in favor of :dependent => :delete_all.  [Jeremy Kemper]
1985 * More compatible Oracle column reflection.  #2771 [Ryan Davis <ryand-ruby@zenspider.com>, Michael Schoen <schoenm@earthlink.net>]
1988 *1.13.0* (November 7th, 2005)
1990 * Fixed faulty regex in get_table_name method (SQLServerAdapter) #2639 [Ryan Tomayko]
1992 * Added :include as an option for association declarations [DHH]. Example:
1994     has_many :posts, :include => [ :author, :comments ]
1996 * Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints.  Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes.  [Jeremy Kemper]  Example:
1998     Comment.with_scope(:find => { :conditions => 'active=true' }, :create => { :post_id => 5 }) do
1999       # Find where name = ? and active=true
2000       Comment.find :all, :conditions => ['name = ?', name]
2001       # Create comment associated with :post_id
2002       Comment.create :body => "Hello world"
2003     end
2005 * Fixed that SQL Server should ignore :size declarations on anything but integer and string in the agnostic schema representation #2756 [Ryan Tomayko]
2007 * Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]. Example:
2009     Comment.constrain(:creation => { :post_id => 5 }) do
2010       # Associated with :post_id
2011       Comment.create :body => "Hello world"
2012     end
2014   This is rarely used directly, but allows for find_or_create on associations. So you can do:
2016     # If the tag doesn't exist, a new one is created that's associated with the person
2017     person.tags.find_or_create_by_name("Summer")
2019 * Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH]. Example:
2021     # No 'Summer' tag exists
2022     Tag.find_or_create_by_name("Summer") # equal to Tag.create(:name => "Summer")
2024     # Now the 'Summer' tag does exist
2025     Tag.find_or_create_by_name("Summer") # equal to Tag.find_by_name("Summer")
2027 * Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH]. Example:
2029     class Account < ActiveRecord::Base
2030       has_many :people do
2031         def find_or_create_by_name(name)
2032           first_name, *last_name = name.split
2033           last_name = last_name.join " "
2035           find_or_create_by_first_name_and_last_name(first_name, last_name)
2036         end
2037       end
2038     end
2040     person = Account.find(:first).people.find_or_create_by_name("David Heinemeier Hansson")
2041     person.first_name # => "David"
2042     person.last_name  # => "Heinemeier Hansson"
2044   Note that the anoymous module must be declared using brackets, not do/end (due to order of evaluation).
2046 * Omit internal dtproperties table from SQLServer table list.  #2729 [rtomayko@gmail.com]
2048 * Quote column names in generated SQL.  #2728 [rtomayko@gmail.com]
2050 * Correct the pure-Ruby MySQL 4.1.1 shim's version test.  #2718 [Jeremy Kemper]
2052 * Add Model.create! to match existing model.save! method.  When save! raises RecordInvalid, you can catch the exception, retrieve the invalid record (invalid_exception.record), and see its errors (invalid_exception.record.errors).  [Jeremy Kemper]
2054 * Correct fixture behavior when table name pluralization is off.  #2719 [Rick Bradley <rick@rickbradley.com>]
2056 * Changed :dbfile to :database for SQLite adapter for consistency (old key still works as an alias) #2644 [Dan Peterson]
2058 * Added migration support for Oracle #2647 [Michael Schoen]
2060 * Worked around that connection can't be reset if allow_concurrency is off.  #2648 [Michael Schoen <schoenm@earthlink.net>]
2062 * Fixed SQL Server adapter to pass even more tests and do even better #2634 [rtomayko@gmail.com]
2064 * Fixed SQL Server adapter so it honors options[:conditions] when applying :limits #1978 [Tom Ward]
2066 * Added migration support to SQL Server adapter (please someone do the same for Oracle and DB2) #2625 [Tom Ward]
2068 * Use AR::Base.silence rather than AR::Base.logger.silence in fixtures to preserve Log4r compatibility.  #2618 [dansketcher@gmail.com]
2070 * Constraints are cloned so they can't be inadvertently modified while they're
2071 in effect.  Added :readonly finder constraint.  Calling an association collection's class method (Part.foobar via item.parts.foobar) constrains :readonly => false since the collection's :joins constraint would otherwise force it to true.  [Jeremy Kemper <rails@bitsweat.net>]
2073 * Added :offset and :limit to the kinds of options that Base.constrain can use #2466 [duane.johnson@gmail.com]
2075 * Fixed handling of nil number columns on Oracle and cleaned up tests for Oracle in general #2555 [schoenm@earthlink.net]
2077 * Added quoted_true and quoted_false methods and tables to db2_adapter and cleaned up tests for DB2 #2493, #2624 [maik schmidt]
2080 *1.12.2* (October 26th, 2005)
2082 * Allow symbols to rename columns when using SQLite adapter. #2531 [kevin.clark@gmail.com]
2084 * Map Active Record time to SQL TIME.  #2575, #2576 [Robby Russell <robby@planetargon.com>]
2086 * Clarify semantics of ActiveRecord::Base#respond_to?  #2560 [skaes@web.de]
2088 * Fixed Association#clear for associations which have not yet been accessed. #2524 [Patrick Lenz <patrick@lenz.sh>]
2090 * HABTM finders shouldn't return readonly records.  #2525 [Patrick Lenz <patrick@lenz.sh>]
2092 * Make all tests runnable on their own. #2521. [Blair Zajac <blair@orcaware.com>]
2095 *1.12.1* (October 19th, 2005)
2097 * Always parenthesize :conditions options so they may be safely combined with STI and constraints.
2099 * Correct PostgreSQL primary key sequence detection.  #2507 [tmornini@infomania.com]
2101 * Added support for using limits in eager loads that involve has_many and has_and_belongs_to_many associations
2104 *1.12.0* (October 16th, 2005)
2106 * Update/clean up documentation (rdoc)
2108 * PostgreSQL sequence support.  Use set_sequence_name in your model class to specify its primary key sequence.  #2292 [Rick Olson <technoweenie@gmail.com>, Robby Russell <robby@planetargon.com>]
2110 * Change default logging colors to work on both white and black backgrounds. [Sam Stephenson]
2112 * YAML fixtures support ordered hashes for fixtures with foreign key dependencies in the same table.  #1896 [purestorm@ggnore.net]
2114 * :dependent now accepts :nullify option. Sets the foreign key of the related objects to NULL instead of deleting them. #2015 [Robby Russell <robby@planetargon.com>] 
2116 * Introduce read-only records.  If you call object.readonly! then it will mark the object as read-only and raise ReadOnlyRecord if you call object.save.  object.readonly? reports whether the object is read-only.  Passing :readonly => true to any finder method will mark returned records as read-only.  The :joins option now implies :readonly, so if you use this option, saving the same record will now fail.  Use find_by_sql to work around.
2118 * Avoid memleak in dev mode when using fcgi
2120 * Simplified .clear on active record associations by using the existing delete_records method. #1906 [Caleb <me@cpb.ca>]
2122 * Delegate access to a customized primary key to the conventional id method. #2444. [Blair Zajac <blair@orcaware.com>]
2124 * Fix errors caused by assigning a has-one or belongs-to property to itself
2126 * Add ActiveRecord::Base.schema_format setting which specifies how databases should be dumped [Sam Stephenson]
2128 * Update DB2 adapter. #2206. [contact@maik-schmidt.de]
2130 * Corrections to SQLServer native data types. #2267.  [rails.20.clarry@spamgourmet.com]
2132 * Deprecated ActiveRecord::Base.threaded_connection in favor of ActiveRecord::Base.allow_concurrency.
2134 * Protect id attribute from mass assigment even when the primary key is set to something else. #2438. [Blair Zajac <blair@orcaware.com>]
2136 * Misc doc fixes (typos/grammar/etc.). #2430. [coffee2code]
2138 * Add test coverage for content_columns. #2432. [coffee2code]
2140 * Speed up for unthreaded environments. #2431. [skaes@web.de]
2142 * Optimization for Mysql selects using mysql-ruby extension greater than 2.6.3.  #2426. [skaes@web.de]
2144 * Speed up the setting of table_name. #2428. [skaes@web.de]
2146 * Optimize instantiation of STI subclass records. In partial fullfilment of #1236. [skaes@web.de]
2148 * Fix typo of 'constrains' to 'contraints'. #2069. [Michael Schuerig <michael@schuerig.de>]
2150 * Optimization refactoring for add_limit_offset!. In partial fullfilment of #1236. [skaes@web.de]
2152 * Add ability to get all siblings, including the current child, with acts_as_tree. Recloses #2140. [Michael Schuerig <michael@schuerig.de>]
2154 * Add geometric type for postgresql adapter. #2233 [akaspick@gmail.com]
2156 * Add option (true by default) to generate reader methods for each attribute of a record to avoid the overhead of calling method missing. In partial fullfilment of #1236. [skaes@web.de]
2158 * Add convenience predicate methods on Column class. In partial fullfilment of #1236. [skaes@web.de]
2160 * Raise errors when invalid hash keys are passed to ActiveRecord::Base.find. #2363  [Chad Fowler <chad@chadfowler.com>, Nicholas Seckar]
2162 * Added :force option to create_table that'll try to drop the table if it already exists before creating
2164 * Fix transactions so that calling return while inside a transaction will not leave an open transaction on the connection. [Nicholas Seckar]
2166 * Use foreign_key inflection uniformly.  #2156 [Blair Zajac <blair@orcaware.com>]
2168 * model.association.clear should destroy associated objects if :dependent => true instead of nullifying their foreign keys.  #2221 [joergd@pobox.com, ObieFernandez <obiefernandez@gmail.com>]
2170 * Returning false from before_destroy should cancel the action.  #1829 [Jeremy Huffman]
2172 * Recognize PostgreSQL NOW() default as equivalent to CURRENT_TIMESTAMP or CURRENT_DATE, depending on the column's type.  #2256 [mat <mat@absolight.fr>]
2174 * Extensive documentation for the abstract database adapter.  #2250 [François Beausoleil <fbeausoleil@ftml.net>]
2176 * Clean up Fixtures.reset_sequences for PostgreSQL.  Handle tables with no rows and models with custom primary keys.  #2174, #2183 [jay@jay.fm, Blair Zajac <blair@orcaware.com>]
2178 * Improve error message when nil is assigned to an attr which validates_size_of within a range.  #2022 [Manuel Holtgrewe <purestorm@ggnore.net>]
2180 * Make update_attribute use the same writer method that update_attributes uses.
2181  #2237 [trevor@protocool.com]
2183 * Make migrations honor table name prefixes and suffixes. #2298 [Jakob S, Marcel Molina]
2185 * Correct and optimize PostgreSQL bytea escaping.  #1745, #1837 [dave@cherryville.org, ken@miriamtech.com, bellis@deepthought.org]
2187 * Fixtures should only reset a PostgreSQL sequence if it corresponds to an integer primary key named id.  #1749 [chris@chrisbrinker.com]
2189 * Standardize the interpretation of boolean columns in the Mysql and Sqlite adapters. (Use MysqlAdapter.emulate_booleans = false to disable this behavior)
2191 * Added new symbol-driven approach to activating observers with Base#observers= [DHH]. Example:
2193     ActiveRecord::Base.observers = :cacher, :garbage_collector
2195 * Added AbstractAdapter#select_value and AbstractAdapter#select_values as convenience methods for selecting single values, instead of hashes, of the first column in a SELECT #2283 [solo@gatelys.com]
2197 * Wrap :conditions in parentheses to prevent problems with OR's #1871 [Jamis Buck]
2199 * Allow the postgresql adapter to work with the SchemaDumper. [Jamis Buck]
2201 * Add ActiveRecord::SchemaDumper for dumping a DB schema to a pure-ruby file, making it easier to consolidate large migration lists and port database schemas between databases. [Jamis Buck]
2203 * Fixed migrations for Windows when using more than 10 [David Naseby]
2205 * Fixed that the create_x method from belongs_to wouldn't save the association properly #2042 [Florian Weber]
2207 * Fixed saving a record with two unsaved belongs_to associations pointing to the same object #2023 [Tobias Luetke]
2209 * Improved migrations' behavior when the schema_info table is empty. [Nicholas Seckar]
2211 * Fixed that Observers didn't observe sub-classes #627 [Florian Weber]
2213 * Fix eager loading error messages, allow :include to specify tables using strings or symbols. Closes #2222 [Marcel Molina]
2215 * Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae]
2217 * Fixed various problems with has_and_belongs_to_many when using customer finder_sql #2094 [Florian Weber]
2219 * Added better exception error when unknown column types are used with migrations #1814 [fbeausoleil@ftml.net]
2221 * Fixed "connection lost" issue with the bundled Ruby/MySQL driver (would kill the app after 8 hours of inactivity) #2163, #428 [kajism@yahoo.com]
2223 * Fixed comparison of Active Record objects so two new objects are not equal #2099 [deberg]
2225 * Fixed that the SQL Server adapter would sometimes return DBI::Timestamp objects instead of Time #2127 [Tom Ward]
2227 * Added the instance methods #root and #ancestors on acts_as_tree and fixed siblings to not include the current node #2142, #2140 [coffee2code]
2229 * Fixed that Active Record would call SHOW FIELDS twice (or more) for the same model when the cached results were available #1947 [sd@notso.net]
2231 * Added log_level and use_silence parameter to ActiveRecord::Base.benchmark. The first controls at what level the benchmark statement will be logged (now as debug, instead of info) and the second that can be passed false to include all logging statements during the benchmark block/
2233 * Make sure the schema_info table is created before querying the current version #1903
2235 * Fixtures ignore table name prefix and suffix #1987 [Jakob S]
2237 * Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com]
2239 * Modify read_attribute to allow a symbol argument #2024 [Ken Kunz]
2241 * Make destroy return self #1913 [sebastian.kanthak@muehlheim.de]
2243 * Fix typo in validations documentation #1938 [court3nay]
2245 * Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]
2247 * Fix typo in count_by_sql documentation #1969 [Alexey Verkhovsky]
2249 * Allow add_column and create_table to specify NOT NULL #1712 [emptysands@gmail.com]
2251 * Fix create_table so that id column is implicitly added [Rick Olson]
2253 * Default sequence names for Oracle changed to #{table_name}_seq, which is the most commonly used standard. In addition, a new method ActiveRecord::Base#set_sequence_name allows the developer to set the sequence name per model. This is a non-backwards-compatible change -- anyone using the old-style "rails_sequence" will need to either create new sequences, or set: ActiveRecord::Base.set_sequence_name = "rails_sequence" #1798
2255 * OCIAdapter now properly handles synonyms, which are commonly used to separate out the schema owner from the application user #1798
2257 * Fixed the handling of camelCase columns names in Oracle #1798
2259 * Implemented for OCI the Rakefile tasks of :clone_structure_to_test, :db_structure_dump, and :purge_test_database, which enable Oracle folks to enjoy all the agile goodness of Rails for testing. Note that the current implementation is fairly limited -- only tables and sequences are cloned, not constraints or indexes. A full clone in Oracle generally requires some manual effort, and is version-specific. Post 9i, Oracle recommends the use of the DBMS_METADATA package, though that approach requires editing of the physical characteristics generated #1798
2261 * Fixed the handling of multiple blob columns in Oracle if one or more of them are null #1798
2263 * Added support for calling constrained class methods on has_many and has_and_belongs_to_many collections #1764 [Tobias Luetke]
2265     class Comment < AR:B
2266       def self.search(q)
2267         find(:all, :conditions => ["body = ?", q])
2268       end
2269     end 
2271     class Post < AR:B
2272       has_many :comments
2273     end
2275     Post.find(1).comments.search('hi') # => SELECT * from comments WHERE post_id = 1 AND body = 'hi'
2277   NOTICE: This patch changes the underlying SQL generated by has_and_belongs_to_many queries. If your relying on that, such as
2278   by explicitly referencing the old t and j aliases, you'll need to update your code. Of course, you _shouldn't_ be relying on
2279   details like that no less than you should be diving in to touch private variables. But just in case you do, consider yourself
2280   noticed :)
2282 * Added migration support for SQLite (using temporary tables to simulate ALTER TABLE) #1771 [Sam Stephenson]
2284 * Remove extra definition of supports_migrations? from abstract_adaptor.rb [Nicholas Seckar]
2286 * Fix acts_as_list so that moving next-to-last item to the bottom does not result in duplicate item positions
2288 * Fixed incompatibility in DB2 adapter with the new limit/offset approach #1718 [Maik Schmidt]
2290 * Added :select option to find which can specify a different value than the default *, like find(:all, :select => "first_name, last_name"), if you either only want to select part of the columns or exclude columns otherwise included from a join #1338 [Stefan Kaes]
2293 *1.11.1* (11 July, 2005)
2295 * Added support for limit and offset with eager loading of has_one and belongs_to associations. Using the options with has_many and has_and_belongs_to_many associations will now raise an ActiveRecord::ConfigurationError #1692 [Rick Olsen]
2297 * Fixed that assume_bottom_position (in acts_as_list) could be called on items already last in the list and they would move one position away from the list #1648 [tyler@kianta.com]
2299 * Added ActiveRecord::Base.threaded_connections flag to turn off 1-connection per thread (required for thread safety). By default it's on, but WEBrick in Rails need it off #1685 [Sam Stephenson]
2301 * Correct reflected table name for singular associations.  #1688 [court3nay@gmail.com]
2303 * Fixed optimistic locking with SQL Server #1660 [tom@popdog.net]
2305 * Added ActiveRecord::Migrator.migrate that can figure out whether to go up or down based on the target version and the current
2307 * Added better error message for "packets out of order" #1630 [courtenay]
2309 * Fixed first run of "rake migrate" on PostgreSQL by not expecting a return value on the id #1640
2312 *1.11.0* (6 July, 2005)
2314 * Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas Seckar]
2316 * Changed logging of SQL statements to use the DEBUG level instead of INFO
2318 * Added new Migrations framework for describing schema transformations in a way that can be easily applied across multiple databases #1604 [Tobias Luetke] See documentation under ActiveRecord::Migration and the additional support in the Rails rakefile/generator.
2320 * Added callback hooks to association collections #1549 [Florian Weber]. Example:
2322     class Project
2323       has_and_belongs_to_many :developers, :before_add => :evaluate_velocity
2325       def evaluate_velocity(developer)
2326         ...
2327       end
2328     end 
2330   ..raising an exception will cause the object not to be added (or removed, with before_remove).
2333 * Fixed Base.content_columns call for SQL Server adapter #1450 [DeLynn Berry]
2335 * Fixed Base#write_attribute to work with both symbols and strings #1190 [Paul Legato]
2337 * Fixed that has_and_belongs_to_many didn't respect single table inheritance types #1081 [Florian Weber]
2339 * Speed up ActiveRecord#method_missing for the common case (read_attribute).
2341 * Only notify observers on after_find and after_initialize if these methods are defined on the model.  #1235 [skaes@web.de]
2343 * Fixed that single-table inheritance sub-classes couldn't be used to limit the result set with eager loading #1215 [Chris McGrath]
2345 * Fixed validates_numericality_of to work with overrided getter-method when :allow_nil is on #1316 [raidel@onemail.at]
2347 * Added roots, root, and siblings to the batch of methods added by acts_as_tree #1541 [michael@schuerig.de]
2349 * Added support for limit/offset with the MS SQL Server driver so that pagination will now work #1569 [DeLynn Berry]
2351 * Added support for ODBC connections to MS SQL Server so you can connect from a non-Windows machine #1569 [Mark Imbriaco/DeLynn Berry]
2353 * Fixed that multiparameter posts ignored attr_protected #1532 [alec+rails@veryclever.net]
2355 * Fixed problem with eager loading when using a has_and_belongs_to_many association using :association_foreign_key #1504 [flash@vanklinkenbergsoftware.nl]
2357 * Fixed Base#find to honor the documentation on how :joins work and make them consistent with Base#count #1405 [pritchie@gmail.com]. What used to be:
2359     Developer.find :all, :joins => 'developers_projects', :conditions => 'id=developer_id AND project_id=1'
2361   ...should instead be:
2363     Developer.find(
2364       :all, 
2365       :joins => 'LEFT JOIN developers_projects ON developers.id = developers_projects.developer_id', 
2366       :conditions => 'project_id=1'
2367     )    
2369 * Fixed that validations didn't respecting custom setting for too_short, too_long messages #1437 [Marcel Molina]
2371 * Fixed that clear_association_cache doesn't delete new associations on new records (so you can safely place new records in the session with Action Pack without having new associations wiped) #1494 [cluon]
2373 * Fixed that calling Model.find([]) returns [] and doesn't throw an exception #1379
2375 * Fixed that adding a record to a has_and_belongs_to collection would always save it -- now it only saves if its a new record #1203 [Alisdair McDiarmid]
2377 * Fixed saving of in-memory association structures to happen as a after_create/after_update callback instead of after_save -- that way you can add new associations in after_create/after_update callbacks without getting them saved twice
2379 * Allow any Enumerable, not just Array, to work as bind variables #1344 [Jeremy Kemper]
2381 * Added actual database-changing behavior to collection assigment for has_many and has_and_belongs_to_many #1425 [Sebastian Kanthak].
2382   Example:
2384     david.projects = [Project.find(1), Project.new("name" => "ActionWebSearch")]
2385     david.save
2387   If david.projects already contain the project with ID 1, this is left unchanged. Any other projects are dropped. And the new
2388   project is saved when david.save is called.
2390   Also included is a way to do assignments through IDs, which is perfect for checkbox updating, so you get to do:
2392     david.project_ids = [1, 5, 7]
2394 * Corrected typo in find SQL for has_and_belongs_to_many.  #1312 [ben@bensinclair.com]
2396 * Fixed sanitized conditions for has_many finder method.  #1281 [jackc@hylesanderson.com, pragdave, Tobias Luetke]
2398 * Comprehensive PostgreSQL schema support.  Use the optional schema_search_path directive in database.yml to give a comma-separated list of schemas to search for your tables.  This allows you, for example, to have tables in a shared schema without having to use a custom table name.  See http://www.postgresql.org/docs/8.0/interactive/ddl-schemas.html to learn more.  #827 [dave@cherryville.org]
2400 * Corrected @@configurations typo #1410 [david@ruppconsulting.com]
2402 * Return PostgreSQL columns in the order they were declared #1374 [perlguy@gmail.com]
2404 * Allow before/after update hooks to work on models using optimistic locking 
2406 * Eager loading of dependent has_one associations won't delete the association #1212
2408 * Added a second parameter to the build and create method for has_one that controls whether the existing association should be replaced (which means nullifying its foreign key as well). By default this is true, but false can be passed to prevent it.
2410 * Using transactional fixtures now causes the data to be loaded only once.
2412 * Added fixture accessor methods that can be used when instantiated fixtures are disabled.
2414     fixtures :web_sites
2416     def test_something
2417       assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
2418     end
2420 * Added DoubleRenderError exception that'll be raised if render* is called twice #518 [Nicholas Seckar]
2422 * Fixed exceptions occuring after render has been called #1096 [Nicholas Seckar]
2424 * CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make "  " fail the validation where it didn't before #1309
2426 * Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead
2428 * Added the :if option to all validations that can either use a block or a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]. Examples:
2430   Conditional validations such as the following are made possible:
2431     validates_numericality_of :income, :if => :employed?
2433   Conditional validations can also solve the salted login generator problem:
2434     validates_confirmation_of :password, :if => :new_password?
2436   Using blocks:
2437     validates_presence_of :username, :if => Proc.new { |user| user.signup_step > 1 }
2439 * Fixed use of construct_finder_sql when using :join #1288 [dwlt@dwlt.net]
2441 * Fixed that :delete_sql in has_and_belongs_to_many associations couldn't access record properties #1299 [Rick Olson]
2443 * Fixed that clone would break when an aggregate had the same name as one of its attributes #1307 [Jeremy Kemper]
2445 * Changed that destroying an object will only freeze the attributes hash, which keeps the object from having attributes changed (as that wouldn't make sense), but allows for the querying of associations after it has been destroyed.
2447 * Changed the callbacks such that observers are notified before the in-object callbacks are triggered. Without this change, it wasn't possible to act on the whole object in something like a before_destroy observer without having the objects own callbacks (like deleting associations) called first.
2449 * Added option for passing an array to the find_all version of the dynamic finders and have it evaluated as an IN fragment. Example:
2451     # SELECT * FROM topics WHERE title IN ('First', 'Second')
2452     Topic.find_all_by_title(["First", "Second"])
2454 * Added compatibility with camelCase column names for dynamic finders #533 [Dee.Zsombor]
2456 * Fixed extraneous comma in count() function that made it not work with joins #1156 [jarkko/Dee.Zsombor]
2458 * Fixed incompatibility with Base#find with an array of ids that would fail when using eager loading #1186 [Alisdair McDiarmid]
2460 * Fixed that validate_length_of lost :on option when :within was specified #1195 [jhosteny@mac.com]
2462 * Added encoding and min_messages options for PostgreSQL #1205 [shugo]. Configuration example:
2464     development:
2465       adapter: postgresql
2466       database: rails_development
2467       host: localhost
2468       username: postgres
2469       password:
2470       encoding: UTF8
2471       min_messages: ERROR
2473 * Fixed acts_as_list where deleting an item that was removed from the list would ruin the positioning of other list items #1197 [Jamis Buck]
2475 * Added validates_exclusion_of as a negative of validates_inclusion_of
2477 * Optimized counting of has_many associations by setting the association to empty if the count is 0 so repeated calls doesn't trigger database calls
2480 *1.10.1* (20th April, 2005)
2482 * Fixed frivilous database queries being triggered with eager loading on empty associations and other things
2484 * Fixed order of loading in eager associations
2486 * Fixed stray comma when using eager loading and ordering together from has_many associations #1143
2489 *1.10.0* (19th April, 2005)
2491 * Added eager loading of associations as a way to solve the N+1 problem more gracefully without piggy-back queries. Example:
2493     for post in Post.find(:all, :limit => 100)
2494       puts "Post:            " + post.title
2495       puts "Written by:      " + post.author.name
2496       puts "Last comment on: " + post.comments.first.created_on
2497     end
2499   This used to generate 301 database queries if all 100 posts had both author and comments. It can now be written as:
2501     for post in Post.find(:all, :limit => 100, :include => [ :author, :comments ])
2503   ...and the number of database queries needed is now 1.
2505 * Added new unified Base.find API and deprecated the use of find_first and find_all. See the documentation for Base.find. Examples:
2507     Person.find(1, :conditions => "administrator = 1", :order => "created_on DESC")
2508     Person.find(1, 5, 6, :conditions => "administrator = 1", :order => "created_on DESC")
2509     Person.find(:first, :order => "created_on DESC", :offset => 5)
2510     Person.find(:all, :conditions => [ "category IN (?)", categories], :limit => 50)
2511     Person.find(:all, :offset => 10, :limit => 10)
2513 * Added acts_as_nested_set #1000 [wschenk]. Introduction:
2515     This acts provides Nested Set functionality.  Nested Set is similiar to Tree, but with
2516     the added feature that you can select the children and all of it's descendants with
2517     a single query.  A good use case for this is a threaded post system, where you want
2518     to display every reply to a comment without multiple selects.
2520 * Added Base.save! that attempts to save the record just like Base.save but will raise a RecordInvalid exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
2522 * Fixed PostgreSQL usage of fixtures with regards to public schemas and table names with dots #962 [gnuman1@gmail.com]
2524 * Fixed that fixtures were being deleted in the same order as inserts causing FK errors #890 [andrew.john.peters@gmail.com]
2526 * Fixed loading of fixtures in to be in the right order (or PostgreSQL would bark) #1047 [stephenh@chase3000.com]
2528 * Fixed page caching for non-vhost applications living underneath the root #1004 [Ben Schumacher]
2530 * Fixes a problem with the SQL Adapter which was resulting in IDENTITY_INSERT not being set to ON when it should be #1104 [adelle]
2532 * Added the option to specify the acceptance string in validates_acceptance_of #1106 [caleb@aei-tech.com]
2534 * Added insert_at(position) to acts_as_list #1083 [DeLynnB]
2536 * Removed the default order by id on has_and_belongs_to_many queries as it could kill performance on large sets (you can still specify by hand with :order)
2538 * Fixed that Base.silence should restore the old logger level when done, not just set it to DEBUG #1084 [yon@milliped.com]
2540 * Fixed boolean saving on Oracle #1093 [mparrish@pearware.org]
2542 * Moved build_association and create_association for has_one and belongs_to out of deprecation as they work when the association is nil unlike association.build and association.create, which require the association to be already in place #864
2544 * Added rollbacks of transactions if they're active as the dispatcher is killed gracefully (TERM signal) #1054 [Leon Bredt]
2546 * Added quoting of column names for fixtures #997 [jcfischer@gmail.com]
2548 * Fixed counter_sql when no records exist in database for PostgreSQL (would give error, not 0) #1039 [Caleb Tennis]
2550 * Fixed that benchmarking times for rendering included db runtimes #987 [skaes@web.de]
2552 * Fixed boolean queries for t/f fields in PostgreSQL #995 [dave@cherryville.org]
2554 * Added that model.items.delete(child) will delete the child, not just set the foreign key to nil, if the child is dependent on the model #978 [Jeremy Kemper]
2556 * Fixed auto-stamping of dates (created_on/updated_on) for PostgreSQL #985 [dave@cherryville.org]
2558 * Fixed Base.silence/benchmark to only log if a logger has been configured #986 [skaes@web.de]
2560 * Added a join parameter as the third argument to Base.find_first and as the second to Base.count #426, #988 [skaes@web.de]
2562 * Fixed bug in Base#hash method that would treat records with the same string-based id as different [Dave Thomas]
2564 * Renamed DateHelper#distance_of_time_in_words_to_now to DateHelper#time_ago_in_words (old method name is still available as a deprecated alias)
2567 *1.9.1* (27th March, 2005)
2569 * Fixed that Active Record objects with float attribute could not be cloned #808
2571 * Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
2573 * Fixed that :counter_cache option would look for a line_items_count column for a LineItem object instead of lineitems_count
2575 * Fixed that AR exists?() would explode on postgresql if the passed id did not match the PK type #900 [Scott Barron]
2577 * Fixed the MS SQL adapter to work with the new limit/offset approach and with binary data (still suffering from 7KB limit, though) #901 [delynnb]
2580 *1.9.0* (22th March, 2005)
2582 * Added adapter independent limit clause as a two-element array with the first being the limit, the second being the offset #795 [Sam Stephenson]. Example:
2584     Developer.find_all nil, 'id ASC', 5      # return the first five developers 
2585     Developer.find_all nil, 'id ASC', [3, 8] # return three developers, starting from #8 and forward
2587   This doesn't yet work with the DB2 or MS SQL adapters. Patches to make that happen are encouraged. 
2589 * Added alias_method :to_param, :id to Base, such that Active Record objects to be used as URL parameters in Action Pack automatically #812 [Nicholas Seckar/Sam Stephenson]
2591 * Improved the performance of the OCI8 adapter for Oracle #723 [pilx/gjenkins]
2593 * Added type conversion before saving a record, so string-based values like "10.0" aren't left for the database to convert #820 [dave@cherryville.org]
2595 * Added with additional settings for working with transactional fixtures and pre-loaded test databases #865 [mindel]
2597 * Fixed acts_as_list to trigger remove_from_list on destroy after the fact, not before, so a unique position can be maintained #871 [Alisdair McDiarmid]
2599 * Added the possibility of specifying fixtures in multiple calls #816 [kim@tinker.com]
2601 * Added Base.exists?(id) that'll return true if an object of the class with the given id exists #854 [stian@grytoyr.net]
2603 * Added optionally allow for nil or empty strings with validates_numericality_of #801 [Sebastian Kanthak]
2605 * Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak]
2607 * Fixed that SQLite3 exceptions are caught and reported properly #823 [yerejm]
2609 * Added that all types of after_find/after_initialized callbacks are triggered if the explicit implementation is present, not only the explicit implementation itself
2611 * Fixed that symbols can be used on attribute assignment, like page.emails.create(:subject => data.subject, :body => data.body)
2614 *1.8.0* (7th March, 2005)
2616 * Added ActiveRecord::Base.colorize_logging to control whether to use colors in logs or not (on by default)
2618 * Added support for timestamp with time zone in PostgreSQL #560 [Scott Barron]
2620 * Added MultiparameterAssignmentErrors and AttributeAssignmentError exceptions #777 [demetrius]. Documentation:
2622    * +MultiparameterAssignmentErrors+ -- collection of errors that occurred during a mass assignment using the 
2623      +attributes=+ method. The +errors+ property of this exception contains an array of +AttributeAssignmentError+ 
2624      objects that should be inspected to determine which attributes triggered the errors.
2625    * +AttributeAssignmentError+ -- an error occurred while doing a mass assignment through the +attributes=+ method.
2626      You can inspect the +attribute+ property of the exception object to determine which attribute triggered the error.
2628 * Fixed that postgresql adapter would fails when reading bytea fields with null value #771 [rodrigo k]
2630 * Added transactional fixtures that uses rollback to undo changes to fixtures instead of DELETE/INSERT -- it's much faster. See documentation under Fixtures #760 [Jeremy Kemper]
2632 * Added destruction of dependent objects in has_one associations when a new assignment happens #742 [mindel]. Example:
2634     class Account < ActiveRecord::Base
2635       has_one :credit_card, :dependent => true
2636     end
2637     class CreditCard < ActiveRecord::Base
2638       belongs_to :account
2639     end
2641     account.credit_card # => returns existing credit card, lets say id = 12
2642     account.credit_card = CreditCard.create("number" => "123")
2643     account.save # => CC with id = 12 is destroyed
2646 * Added validates_numericality_of #716 [skanthak/c.r.mcgrath]. Docuemntation:
2648     Validates whether the value of the specified attribute is numeric by trying to convert it to
2649     a float with Kernel.Float (if <tt>integer</tt> is false) or applying it to the regular expression
2650     <tt>/^[\+\-]?\d+$/</tt> (if <tt>integer</tt> is set to true).
2652       class Person < ActiveRecord::Base
2653         validates_numericality_of :value, :on => :create
2654       end
2656     Configuration options:
2657     * <tt>message</tt> - A custom error message (default is: "is not a number")
2658     * <tt>on</tt> Specifies when this validation is active (default is :save, other options :create, :update)
2659     * <tt>only_integer</tt> Specifies whether the value has to be an integer, e.g. an integral value (default is false)
2662 * Fixed that HasManyAssociation#count was using :finder_sql rather than :counter_sql if it was available #445 [Scott Barron]
2664 * Added better defaults for composed_of, so statements like composed_of :time_zone, :mapping => %w( time_zone time_zone ) can be written without the mapping part (it's now assumed)
2666 * Added MacroReflection#macro which will return a symbol describing the macro used (like :composed_of or :has_many) #718, #248 [james@slashetc.com]
2669 *1.7.0* (24th February, 2005)
2671 * Changed the auto-timestamping feature to use ActiveRecord::Base.default_timezone instead of entertaining the parallel ActiveRecord::Base.timestamps_gmt method. The latter is now deprecated and will throw a warning on use (but still work) #710 [Jamis Buck]
2673 * Added a OCI8-based Oracle adapter that has been verified to work with Oracle 8 and 9 #629 [Graham Jenkins]. Usage notes:
2675     1.  Key generation uses a sequence "rails_sequence" for all tables. (I couldn't find a simple
2676         and safe way of passing table-specific sequence information to the adapter.)
2677     2.  Oracle uses DATE or TIMESTAMP datatypes for both dates and times. Consequently I have had to
2678         resort to some hacks to get data converted to Date or Time in Ruby.
2679         If the column_name ends in _at (like created_at, updated_at) it's created as a Ruby Time. Else if the
2680         hours/minutes/seconds are 0, I make it a Ruby Date. Else it's a Ruby Time.
2681         This is nasty - but if you use Duck Typing you'll probably not care very much.
2682         In 9i it's tempting to map DATE to Date and TIMESTAMP to Time but I don't think that is
2683         valid - too many databases use DATE for both.
2684         Timezones and sub-second precision on timestamps are not supported.
2685     3.  Default values that are functions (such as "SYSDATE") are not supported. This is a
2686         restriction of the way active record supports default values.
2687     4.  Referential integrity constraints are not fully supported. Under at least
2688         some circumstances, active record appears to delete parent and child records out of
2689         sequence and out of transaction scope. (Or this may just be a problem of test setup.)
2691   The OCI8 driver can be retrieved from http://rubyforge.org/projects/ruby-oci8/
2693 * Added option :schema_order to the PostgreSQL adapter to support the use of multiple schemas per database #697 [YuriSchimke]
2695 * Optimized the SQL used to generate has_and_belongs_to_many queries by listing the join table first #693 [yerejm]
2697 * Fixed that when using validation macros with a custom message, if you happened to use single quotes in the message string you would get a parsing error #657 [tonka]
2699 * Fixed that Active Record would throw Broken Pipe errors with FCGI when the MySQL connection timed out instead of reconnecting #428 [Nicholas Seckar]
2701 * Added options to specify an SSL connection for MySQL. Define the following attributes in the connection config (config/database.yml in Rails) to use it: sslkey, sslcert, sslca, sslcapath, sslcipher. To use SSL with no client certs, just set :sslca = '/dev/null'. http://dev.mysql.com/doc/mysql/en/secure-connections.html #604 [daniel@nightrunner.com]
2703 * Added automatic dropping/creating of test tables for running the unit tests on all databases #587 [adelle@bullet.net.au]
2705 * Fixed that find_by_* would fail when column names had numbers #670 [demetrius]
2707 * Fixed the SQL Server adapter on a bunch of issues #667 [DeLynn]
2709     1. Created a new columns method that is much cleaner. 
2710     2. Corrected a problem with the select and select_all methods 
2711        that didn't account for the LIMIT clause being passed into raw SQL statements. 
2712     3. Implemented the string_to_time method in order to create proper instances of the time class. 
2713     4. Added logic to the simplified_type method that allows the database to specify the scale of float data. 
2714     5. Adjusted the quote_column_name to account for the fact that MS SQL is bothered by a forward slash in the data string.
2716 * Fixed that the dynamic finder like find_all_by_something_boolean(false) didn't work #649 [lmarlow@yahoo.com]
2718 * Added validates_each that validates each specified attribute against a block #610 [Jeremy Kemper]. Example:
2720     class Person < ActiveRecord::Base
2721       validates_each :first_name, :last_name do |record, attr|
2722         record.errors.add attr, 'starts with z.' if attr[0] == ?z
2723       end
2724     end
2726 * Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [Jeremy Kemper]
2728 * Added that validates_* now accept blocks to perform validations #618 [Tim Bates]. Example:
2730     class Person < ActiveRecord::Base
2731       validate { |person| person.errors.add("title", "will never be valid") if SHOULD_NEVER_BE_VALID }
2732     end
2734 * Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates]
2736 * Added keyword-style approach to defining the custom relational bindings #545 [Jamis Buck]. Example:
2738     class Project < ActiveRecord::Base
2739       primary_key "sysid"
2740       table_name "XYZ_PROJECT"
2741       inheritance_column { original_inheritance_column + "_id" }
2742     end
2744 * Fixed Base#clone for use with PostgreSQL #565 [hanson@surgery.wisc.edu]
2747 *1.6.0* (January 25th, 2005)
2749 * Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once.
2751 * Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336
2753 * Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once.
2755 * Added the option of supplying an array of ids and attributes to Base#update, so that multiple records can be updated at once (inspired by #526/Duane Johnson). Example
2757     people = { 1 => { "first_name" => "David" }, 2 => { "first_name" => "Jeremy"} }
2758     Person.update(people.keys, people.values)
2760 * Added ActiveRecord::Base.timestamps_gmt that can be set to true to make the automated timestamping use GMT instead of local time #520 [Scott Baron]
2762 * Added that update_all calls sanitize_sql on its updates argument, so stuff like MyRecord.update_all(['time = ?', Time.now]) works #519 [notahat]
2764 * Fixed that the dynamic finders didn't treat nil as a "IS NULL" but rather "= NULL" case #515 [Demetrius]
2766 * Added bind-named arrays for interpolating a group of ids or strings in conditions #528 [Jeremy Kemper]
2768 * Added that has_and_belongs_to_many associations with additional attributes also can be created between unsaved objects and only committed to the database when Base#save is called on the associator #524 [Eric Anderson]
2770 * Fixed that records fetched with piggy-back attributes or through rich has_and_belongs_to_many associations couldn't be saved due to the extra attributes not part of the table #522 [Eric Anderson]
2772 * Added mass-assignment protection for the inheritance column -- regardless of a custom column is used or not
2774 * Fixed that association proxies would fail === tests like PremiumSubscription === @account.subscription
2776 * Fixed that column aliases didn't work as expected with the new MySql411 driver #507 [Demetrius]
2778 * Fixed that find_all would produce invalid sql when called sequentialy #490 [Scott Baron]
2781 *1.5.1* (January 18th, 2005)
2783 * Fixed that the belongs_to and has_one proxy would fail a test like 'if project.manager' -- this unfortunately also means that you can't call methods like project.manager.build unless there already is a manager on the project #492 [Tim Bates]
2785 * Fixed that the Ruby/MySQL adapter wouldn't connect if the password was empty #503 [Pelle]
2788 *1.5.0* (January 17th, 2005)
2790 * Fixed that unit tests for MySQL are now run as the "rails" user instead of root #455 [Eric Hodel]
2792 * Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]. Example:
2794     class Book < ActiveRecord::Base
2795       has_many :pages
2796       belongs_to :library
2798       validates_associated :pages, :library
2799     end
2801 * Added support for associating unsaved objects #402 [Tim Bates]. Rules that govern this addition:
2803     == Unsaved objects and associations
2805     You can manipulate objects and associations before they are saved to the database, but there is some special behaviour you should be
2806     aware of, mostly involving the saving of associated objects.
2808     === One-to-one associations
2810     * Assigning an object to a has_one association automatically saves that object, and the object being replaced (if there is one), in
2811       order to update their primary keys - except if the parent object is unsaved (new_record? == true).
2812     * If either of these saves fail (due to one of the objects being invalid) the assignment statement returns false and the assignment
2813       is cancelled.
2814     * If you wish to assign an object to a has_one association without saving it, use the #association.build method (documented below).
2815     * Assigning an object to a belongs_to association does not save the object, since the foreign key field belongs on the parent. It does
2816       not save the parent either.
2818     === Collections
2820     * Adding an object to a collection (has_many or has_and_belongs_to_many) automatically saves that object, except if the parent object
2821       (the owner of the collection) is not yet stored in the database.
2822     * If saving any of the objects being added to a collection (via #push or similar) fails, then #push returns false.
2823     * You can add an object to a collection without automatically saving it by using the #collection.build method (documented below).
2824     * All unsaved (new_record? == true) members of the collection are automatically saved when the parent is saved.
2826 * Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
2828 * Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
2830 * Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]
2832 * Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
2834 * Fixed binary support for PostgreSQL #444 [alex@byzantine.no]
2836 * Added a differenciation between AssociationCollection#size and -length. Now AssociationCollection#size returns the size of the 
2837   collection by executing a SELECT COUNT(*) query if the collection hasn't been loaded and calling collection.size if it has. If 
2838   it's more likely than not that the collection does have a size larger than zero and you need to fetch that collection afterwards, 
2839   it'll take one less SELECT query if you use length.
2841 * Added Base#attributes that returns a hash of all the attributes with their names as keys and clones of their objects as values #433 [atyp.de]
2843 * Fixed that foreign keys named the same as the association would cause stack overflow #437 [Eric Anderson]
2845 * Fixed default scope of acts_as_list from "1" to "1 = 1", so it'll work in PostgreSQL (among other places) #427 [Alexey]
2847 * Added Base#reload that reloads the attributes of an object from the database #422 [Andreas Schwarz]
2849 * Added SQLite3 compatibility through the sqlite3-ruby adapter by Jamis Buck #381 [Jeremy Kemper]
2851 * Added support for the new protocol spoken by MySQL 4.1.1+ servers for the Ruby/MySQL adapter that ships with Rails #440 [Matt Mower] 
2853 * Added that Observers can use the observes class method instead of overwriting self.observed_class().
2855     Before:
2856       class ListSweeper < ActiveRecord::Base
2857         def self.observed_class() [ List, Item ]
2858       end
2860     After:
2861       class ListSweeper < ActiveRecord::Base
2862         observes List, Item
2863       end
2865 * Fixed that conditions in has_many and has_and_belongs_to_many should be interpolated just like the finder_sql is
2867 * Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
2869 * Added Base#toggle(attribute) and Base#toggle!(attribute) that makes it easier to flip a switch or flag.
2871     Before: topic.update_attribute(:approved, !approved?)
2872     After : topic.toggle!(:approved)
2874 * Added Base#increment!(attribute) and Base#decrement!(attribute) that also saves the records. Example:
2876     page.views # => 1
2877     page.increment!(:views) # executes an UPDATE statement
2878     page.views # => 2
2880     page.increment(:views).increment!(:views)
2881     page.views # => 4
2883 * Added Base#increment(attribute) and Base#decrement(attribute) that encapsulates the += 1 and -= 1 patterns.
2888 *1.14.2* (April 9th, 2005)
2890 * Fixed calculations for the Oracle Adapter (closes #4626) [Michael Schoen]
2893 *1.14.1* (April 6th, 2006)
2895 * Fix type_name_with_module to handle type names that begin with '::'. Closes #4614. [Nicholas Seckar]
2897 * Fixed that that multiparameter assignment doesn't work with aggregations (closes #4620) [Lars Pind]
2899 * Enable Limit/Offset in Calculations (closes #4558) [lmarlow@yahoo.com]
2901 * Fixed that loading including associations returns all results if Load IDs For Limited Eager Loading returns none (closes #4528) [Rick]
2903 * Fixed HasManyAssociation#find bugs when :finder_sql is set #4600 [lagroue@free.fr]
2905 * Allow AR::Base#respond_to? to behave when @attributes is nil [zenspider]
2907 * Support eager includes when going through a polymorphic has_many association. [Rick]
2909 * Added support for eagerly including polymorphic has_one associations. (closes #4525) [Rick]
2911     class Post < ActiveRecord::Base
2912       has_one :tagging, :as => :taggable
2913     end
2914     
2915     Post.find :all, :include => :tagging
2917 * Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
2919 * Added support for going through a polymorphic has_many association: (closes #4401) [Rick]
2921     class PhotoCollection < ActiveRecord::Base
2922       has_many :photos, :as => :photographic
2923       belongs_to :firm
2924     end
2925      
2926     class Firm < ActiveRecord::Base
2927       has_many :photo_collections
2928       has_many :photos, :through => :photo_collections
2929     end
2931 * Multiple fixes and optimizations in PostgreSQL adapter, allowing ruby-postgres gem to work properly. [ruben.nine@gmail.com]
2933 * Fixed that AssociationCollection#delete_all should work even if the records of the association are not loaded yet. [Florian Weber]
2935 * Changed those private ActiveRecord methods to take optional third argument :auto instead of nil for performance optimizations.  (closes #4456) [Stefan]
2937 * Private ActiveRecord methods add_limit!, add_joins!, and add_conditions! take an OPTIONAL third argument 'scope' (closes #4456) [Rick]
2939 * DEPRECATED: Using additional attributes on has_and_belongs_to_many associations. Instead upgrade your association to be a real join model [DHH]
2941 * Fixed that records returned from has_and_belongs_to_many associations with additional attributes should be marked as read only (fixes #4512) [DHH]
2943 * Do not implicitly mark recordss of has_many :through as readonly but do mark habtm records as readonly (eventually only on join tables without rich attributes). [Marcel Mollina Jr.]
2945 * Fixed broken OCIAdapter #4457 [schoenm@earthlink.net]
2948 *1.14.0* (March 27th, 2006)
2950 * Replace 'rescue Object' with a finer grained rescue. Closes #4431. [Nicholas Seckar]
2952 * Fixed eager loading so that an aliased table cannot clash with a has_and_belongs_to_many join table [Rick]
2954 * Add support for :include to with_scope [andrew@redlinesoftware.com]
2956 * Support the use of public synonyms with the Oracle adapter; required ruby-oci8 v0.1.14 #4390 [schoenm@earthlink.net]
2958 * Change periods (.) in table aliases to _'s.  Closes #4251 [jeff@ministrycentered.com]
2960 * Changed has_and_belongs_to_many join to INNER JOIN for Mysql 3.23.x.  Closes #4348 [Rick]
2962 * Fixed issue that kept :select options from being scoped [Rick]
2964 * Fixed db_schema_import when binary types are present #3101 [DHH]
2966 * Fixed that MySQL enums should always be returned as strings #3501 [DHH]
2968 * Change has_many :through to use the :source option to specify the source association.  :class_name is now ignored. [Rick Olson]
2970     class Connection < ActiveRecord::Base
2971       belongs_to :user
2972       belongs_to :channel
2973     end
2975     class Channel < ActiveRecord::Base
2976       has_many :connections
2977       has_many :contacts, :through => :connections, :class_name => 'User' # OLD
2978       has_many :contacts, :through => :connections, :source => :user      # NEW
2979     end
2981 * Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed #4350 [contact@maik-schmidt.de]
2983 * Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]
2985   In this example, :include => false disables the default eager association from loading.  :select changes the standard
2986   select clause.  :joins specifies a join that is added to the end of the has_many :through query.
2987   
2988     class Post < ActiveRecord::Base
2989       has_many :tags, :through => :taggings, :include => :tagging do
2990         def add_joins_and_select
2991           find :all, :select => 'tags.*, authors.id as author_id', :include => false,
2992             :joins => 'left outer join posts on taggings.taggable_id = posts.id left outer join authors on posts.author_id = authors.id'
2993         end
2994       end
2995     end
2996     
2997 * Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
2999 * Don't classify the has_one class when eager loading, it is already singular. Add tests. (closes #4117) [jonathan@bluewire.net.nz]
3001 * Quit ignoring default :include options in has_many :through calls [Mark James]
3003 * Allow has_many :through associations to find the source association by setting a custom class (closes #4307) [jonathan@bluewire.net.nz]
3005 * Eager Loading support added for has_many :through => :has_many associations (see below).  [Rick Olson]
3007 * Allow has_many :through to work on has_many associations (closes #3864) [sco@scottraymond.net]  Example:
3009     class Firm < ActiveRecord::Base
3010       has_many :clients
3011       has_many :invoices, :through => :clients
3012     end
3013   
3014     class Client < ActiveRecord::Base
3015       belongs_to :firm
3016       has_many   :invoices
3017     end
3018   
3019     class Invoice < ActiveRecord::Base
3020       belongs_to :client
3021     end
3023 * Raise error when trying to select many polymorphic objects with has_many :through or :include (closes #4226) [josh@hasmanythrough.com]
3025 * Fixed has_many :through to include :conditions set on the :through association. closes #4020 [jonathan@bluewire.net.nz]
3027 * Fix that has_many :through honors the foreign key set by the belongs_to association in the join model (closes #4259) [andylien@gmail.com / Rick]
3029 * SQL Server adapter gets some love #4298 [rtomayko@gmail.com]
3031 * Added OpenBase database adapter that builds on top of the http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported #3528 [derrickspell@cdmplus.com]
3033 * Rework table aliasing to account for truncated table aliases.  Add smarter table aliasing when doing eager loading of STI associations. This allows you to use the association name in the order/where clause. [Jonathan Viney / Rick Olson] #4108 Example (SpecialComment is using STI):
3035     Author.find(:all, :include => { :posts => :special_comments }, :order => 'special_comments.body')
3037 * Add AbstractAdapter#table_alias_for to create table aliases according to the rules of the current adapter. [Rick]
3039 * Provide access to the underlying database connection through Adapter#raw_connection. Enables the use of db-specific methods without complicating the adapters. #2090 [Koz]
3041 * Remove broken attempts at handling columns with a default of 'now()' in the postgresql adapter. #2257 [Koz]
3043 * Added connection#current_database that'll return of the current database (only works in MySQL, SQL Server, and Oracle so far -- please help implement for the rest of the adapters) #3663 [Tom ward]
3045 * Fixed that Migration#execute would have the table name prefix appended to its query #4110 [mark.imbriaco@pobox.com]
3047 * Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, etc.) [Jamis Buck]
3049 * Use association's :conditions when eager loading. [jeremyevans0@gmail.com] #4144
3051 * Alias the has_and_belongs_to_many join table on eager includes. #4106 [jeremyevans0@gmail.com]
3053   This statement would normally error because the projects_developers table is joined twice, and therefore joined_on would be ambiguous.
3055     Developer.find(:all, :include => {:projects => :developers}, :conditions => 'join_project_developers.joined_on IS NOT NULL')
3057 * Oracle adapter gets some love #4230 [schoenm@earthlink.net]
3059     * Changes :text to CLOB rather than BLOB [Moses Hohman]
3060     * Fixes an issue with nil numeric length/scales (several)
3061     * Implements support for XMLTYPE columns [wilig / Kubo Takehiro]
3062     * Tweaks a unit test to get it all green again
3063     * Adds support for #current_database
3065 * Added Base.abstract_class? that marks which classes are not part of the Active Record hierarchy #3704 [Rick Olson]
3067     class CachedModel < ActiveRecord::Base
3068       self.abstract_class = true
3069     end
3070     
3071     class Post < CachedModel
3072     end
3073     
3074     CachedModel.abstract_class?
3075     => true
3076     
3077     Post.abstract_class?
3078     => false
3080     Post.base_class
3081     => Post
3082     
3083     Post.table_name
3084     => 'posts'
3086 * Allow :dependent options to be used with polymorphic joins. #3820 [Rick Olson]
3088     class Foo < ActiveRecord::Base
3089       has_many :attachments, :as => :attachable, :dependent => :delete_all
3090     end
3092 * Nicer error message on has_many :through when :through reflection can not be found. #4042 [court3nay@gmail.com]
3094 * Upgrade to Transaction::Simple 1.3 [Jamis Buck]
3096 * Catch FixtureClassNotFound when using instantiated fixtures on a fixture that has no ActiveRecord model [Rick Olson]
3098 * Allow ordering of calculated results and/or grouped fields in calculations [solo@gatelys.com]
3100 * Make ActiveRecord::Base#save! return true instead of nil on success.  #4173 [johan@johansorensen.com]
3102 * Dynamically set allow_concurrency.  #4044 [Stefan Kaes]
3104 * Added Base#to_xml that'll turn the current record into a XML representation [DHH]. Example:
3106     topic.to_xml
3107   
3108   ...returns:
3109   
3110     <?xml version="1.0" encoding="UTF-8"?>
3111     <topic>
3112       <title>The First Topic</title>
3113       <author-name>David</author-name>
3114       <id type="integer">1</id>
3115       <approved type="boolean">false</approved>
3116       <replies-count type="integer">0</replies-count>
3117       <bonus-time type="datetime">2000-01-01 08:28:00</bonus-time>
3118       <written-on type="datetime">2003-07-16 09:28:00</written-on>
3119       <content>Have a nice day</content>
3120       <author-email-address>david@loudthinking.com</author-email-address>
3121       <parent-id></parent-id>
3122       <last-read type="date">2004-04-15</last-read>
3123     </topic>
3124   
3125   ...and you can configure with:
3126   
3127     topic.to_xml(:skip_instruct => true, :except => [ :id, bonus_time, :written_on, replies_count ])
3128   
3129   ...that'll return:
3130   
3131     <topic>
3132       <title>The First Topic</title>
3133       <author-name>David</author-name>
3134       <approved type="boolean">false</approved>
3135       <content>Have a nice day</content>
3136       <author-email-address>david@loudthinking.com</author-email-address>
3137       <parent-id></parent-id>
3138       <last-read type="date">2004-04-15</last-read>
3139     </topic>
3140   
3141   You can even do load first-level associations as part of the document:
3142   
3143     firm.to_xml :include => [ :account, :clients ]
3144   
3145   ...that'll return something like:
3146   
3147     <?xml version="1.0" encoding="UTF-8"?>
3148     <firm>
3149       <id type="integer">1</id>
3150       <rating type="integer">1</rating>
3151       <name>37signals</name>
3152       <clients>
3153         <client>
3154           <rating type="integer">1</rating>
3155           <name>Summit</name>
3156         </client>
3157         <client>
3158           <rating type="integer">1</rating>
3159           <name>Microsoft</name>
3160         </client>
3161       </clients>
3162       <account>
3163         <id type="integer">1</id>
3164         <credit-limit type="integer">50</credit-limit>
3165       </account>
3166     </firm>  
3168 * Allow :counter_cache to take a column name for custom counter cache columns [Jamis Buck]
3170 * Documentation fixes for :dependent [robby@planetargon.com]
3172 * Stop the MySQL adapter crashing when views are present. #3782 [Jonathan Viney]
3174 * Don't classify the belongs_to class, it is already singular #4117 [keithm@infused.org]
3176 * Allow set_fixture_class to take Classes instead of strings for a class in a module.  Raise FixtureClassNotFound if a fixture can't load.  [Rick Olson]
3178 * Fix quoting of inheritance column for STI eager loading #4098 [Jonathan Viney <jonathan@bluewire.net.nz>]
3180 * Added smarter table aliasing for eager associations for multiple self joins #3580 [Rick Olson]
3182     * The first time a table is referenced in a join, no alias is used.
3183     * After that, the parent class name and the reflection name are used.
3184     
3185         Tree.find(:all, :include => :children) # LEFT OUTER JOIN trees AS tree_children ...
3186     
3187     * Any additional join references get a numerical suffix like '_2', '_3', etc.
3189 * Fixed eager loading problems with single-table inheritance #3580 [Rick Olson]. Post.find(:all, :include => :special_comments) now returns all posts, and any special comments that the posts may have. And made STI work with has_many :through and polymorphic belongs_to.
3191 * Added cascading eager loading that allows for queries like Author.find(:all, :include=> { :posts=> :comments }), which will fetch all authors, their posts, and the comments belonging to those posts in a single query (using LEFT OUTER JOIN) #3913 [anna@wota.jp]. Examples:
3193     # cascaded in two levels
3194     >> Author.find(:all, :include=>{:posts=>:comments})
3195     => authors
3196          +- posts
3197               +- comments
3198     
3199     # cascaded in two levels and normal association
3200     >> Author.find(:all, :include=>[{:posts=>:comments}, :categorizations])
3201     => authors
3202          +- posts
3203               +- comments
3204          +- categorizations
3205     
3206     # cascaded in two levels with two has_many associations
3207     >> Author.find(:all, :include=>{:posts=>[:comments, :categorizations]})
3208     => authors
3209          +- posts
3210               +- comments
3211               +- categorizations
3212     
3213     # cascaded in three levels
3214     >> Company.find(:all, :include=>{:groups=>{:members=>{:favorites}}})
3215     => companies
3216          +- groups
3217               +- members
3218                    +- favorites
3219     
3220 * Make counter cache work when replacing an association #3245 [eugenol@gmail.com]
3222 * Make migrations verbose [Jamis Buck]
3224 * Make counter_cache work with polymorphic belongs_to [Jamis Buck]
3226 * Fixed that calling HasOneProxy#build_model repeatedly would cause saving to happen #4058 [anna@wota.jp]
3228 * Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) #3765 [John Sheets]. It's almost completely Active Record compliant (including migrations), but has the following caveats:
3230     * Does not support DATE SQL column types; use DATETIME instead.
3231     * Date columns on HABTM join tables are returned as String, not Time.
3232     * Insertions are potentially broken for :polymorphic join tables
3233     * BLOB column access not yet fully supported
3235 * Clear stale, cached connections left behind by defunct threads. [Jeremy Kemper]
3237 * CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false.  Most AR usage is in single-threaded applications. [Jeremy Kemper]
3239 * Renamed the "oci" adapter to "oracle", but kept the old name as an alias #4017 [schoenm@earthlink.net]
3241 * Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's #1861, #2477 [DHH]
3243 * Speed up class -> connection caching and stale connection verification.  #3979 [Stefan Kaes]
3245 * Add set_fixture_class to allow the use of table name accessors with models which use set_table_name. [Kevin Clark]
3247 * Added that fixtures to placed in subdirectories of the main fixture files are also loaded #3937 [dblack@wobblini.net]
3249 * Define attribute query methods to avoid method_missing calls. #3677 [jonathan@bluewire.net.nz]
3251 * ActiveRecord::Base.remove_connection explicitly closes database connections and doesn't corrupt the connection cache. Introducing the disconnect! instance method for the PostgreSQL, MySQL, and SQL Server adapters; implementations for the others are welcome.  #3591 [Simon Stapleton, Tom Ward]
3253 * Added support for nested scopes #3407 [anna@wota.jp]. Examples:
3255     Developer.with_scope(:find => { :conditions => "salary > 10000", :limit => 10 }) do
3256       Developer.find(:all)     # => SELECT * FROM developers WHERE (salary > 10000) LIMIT 10
3258       # inner rule is used. (all previous parameters are ignored)
3259       Developer.with_exclusive_scope(:find => { :conditions => "name = 'Jamis'" }) do
3260         Developer.find(:all)   # => SELECT * FROM developers WHERE (name = 'Jamis')
3261       end
3263       # parameters are merged
3264       Developer.with_scope(:find => { :conditions => "name = 'Jamis'" }) do
3265         Developer.find(:all)   # => SELECT * FROM developers WHERE (( salary > 10000 ) AND ( name = 'Jamis' )) LIMIT 10
3266       end
3267     end
3269 * Fixed db2 connection with empty user_name and auth options #3622 [phurley@gmail.com]
3271 * Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes #3699 [Masao Mutoh]
3273 * Fixed that reflections would bleed across class boundaries in single-table inheritance setups #3796 [lars@pind.com]
3275 * Added calculations: Base.count, Base.average, Base.sum, Base.minimum, Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson]. Examples:
3277     Person.average :age
3278     Person.minimum :age
3279     Person.maximum :age
3280     Person.sum :salary, :group => :last_name
3282 * Renamed Errors#count to Errors#size but kept an alias for the old name (and included an alias for length too) #3920 [contact@lukeredpath.co.uk]
3284 * Reflections don't attempt to resolve module nesting of association classes. Simplify type computation. [Jeremy Kemper]
3286 * Improved the Oracle OCI Adapter with better performance for column reflection (from #3210), fixes to migrations (from #3476 and #3742), tweaks to unit tests (from #3610), and improved documentation (from #2446) #3879 [Aggregated by schoenm@earthlink.net]
3288 * Fixed that the schema_info table used by ActiveRecord::Schema.define should respect table pre- and suffixes #3834 [rubyonrails@atyp.de]
3290 * Added :select option to Base.count that'll allow you to select something else than * to be counted on. Especially important for count queries using DISTINCT #3839 [skaes]
3292 * Correct syntax error in mysql DDL,  and make AAACreateTablesTest run first [Bob Silva]
3294 * Allow :include to be used with has_many :through associations #3611 [Michael Schoen]
3296 * PostgreSQL: smarter schema dumps using pk_and_sequence_for(table).  #2920 [Blair Zajac]
3298 * SQLServer: more compatible limit/offset emulation.  #3779 [Tom Ward]
3300 * Polymorphic join support for has_one associations (has_one :foo, :as => :bar)  #3785 [Rick Olson]
3302 * PostgreSQL: correctly parse negative integer column defaults.  #3776 [bellis@deepthought.org]
3304 * Fix problems with count when used with :include [Jeremy Hopple and Kevin Clark]
3306 * ActiveRecord::RecordInvalid now states which validations failed in its default error message [Tobias Luetke]
3308 * Using AssociationCollection#build with arrays of hashes should call build, not create [DHH]
3310 * Remove definition of reloadable? from ActiveRecord::Base to make way for new Reloadable code. [Nicholas Seckar]
3312 * Fixed schema handling for DB2 adapter that didn't work: an initial schema could be set, but it wasn't used when getting tables and indexes #3678 [Maik Schmidt]
3314 * Support the :column option for remove_index with the PostgreSQL adapter. #3661 [shugo@ruby-lang.org]
3316 * Add documentation for add_index and remove_index. #3600 [Manfred Stienstra <m.stienstra@fngtps.com>]
3318 * If the OCI library is not available, raise an exception indicating as much. #3593 [schoenm@earthlink.net]
3320 * Add explicit :order in finder tests as postgresql orders results differently by default. #3577. [Rick Olson]
3322 * Make dynamic finders honor additional passed in :conditions. #3569 [Oleg Pudeyev <pudeyo@rpi.edu>, Marcel Molina Jr.]
3324 * Show a meaningful error when the DB2 adapter cannot be loaded due to missing dependencies. [Nicholas Seckar]
3326 * Make .count work for has_many associations with multi line finder sql [schoenm@earthlink.net]
3328 * Add AR::Base.base_class for querying the ancestor AR::Base subclass [Jamis Buck]
3330 * Allow configuration of the column used for optimistic locking [wilsonb@gmail.com]
3332 * Don't hardcode 'id' in acts as list.  [ror@philippeapril.com]
3334 * Fix date errors for SQLServer in association tests. #3406 [kevin.clark@gmal.com]
3336 * Escape database name in MySQL adapter when creating and dropping databases. #3409 [anna@wota.jp]
3338 * Disambiguate table names for columns in validates_uniquness_of's WHERE clause. #3423 [alex.borovsky@gmail.com]
3340 * .with_scope imposed create parameters now bypass attr_protected [Tobias Luetke]
3342 * Don't raise an exception when there are more keys than there are named bind variables when sanitizing conditions. [Marcel Molina Jr.]
3344 * Multiple enhancements and adjustments to DB2 adaptor. #3377 [contact@maik-schmidt.de]
3346 * Sanitize scoped conditions. [Marcel Molina Jr.]
3348 * Added option to Base.reflection_of_all_associations to specify a specific association to scope the call. For example Base.reflection_of_all_associations(:has_many) [DHH]
3350 * Added ActiveRecord::SchemaDumper.ignore_tables which tells SchemaDumper which tables to ignore. Useful for tables with funky column like the ones required for tsearch2. [TobiasLuetke]
3352 * SchemaDumper now doesn't fail anymore when there are unknown column types in the schema. Instead the table is ignored and a Comment is left in the schema.rb. [TobiasLuetke]
3354 * Fixed that saving a model with multiple habtm associations would only save the first one.  #3244 [yanowitz-rubyonrails@quantumfoam.org, Florian Weber]
3356 * Fix change_column to work with PostgreSQL 7.x and 8.x.  #3141 [wejn@box.cz, Rick Olson, Scott Barron] 
3358 * removed :piggyback in favor of just allowing :select on :through associations. [Tobias Luetke] 
3360 * made method missing delegation to class methods on relation target work on :through associations. [Tobias Luetke] 
3362 * made .find() work on :through relations. [Tobias Luetke] 
3364 * Fix typo in association docs. #3296. [Blair Zajac]
3366 * Fixed :through relations when using STI inherited classes would use the inherited class's name as foreign key on the join model [Tobias Luetke] 
3368 *1.13.2* (December 13th, 2005)
3370 * Become part of Rails 1.0
3372 * MySQL: allow encoding option for mysql.rb driver.  [Jeremy Kemper]
3374 * Added option inheritance for find calls on has_and_belongs_to_many and has_many assosociations [DHH]. Example:
3376     class Post
3377       has_many :recent_comments, :class_name => "Comment", :limit => 10, :include => :author
3378     end
3379     
3380     post.recent_comments.find(:all) # Uses LIMIT 10 and includes authors
3381     post.recent_comments.find(:all, :limit => nil) # Uses no limit but include authors
3382     post.recent_comments.find(:all, :limit => nil, :include => nil) # Uses no limit and doesn't include authors
3384 * Added option to specify :group, :limit, :offset, and :select options from find on has_and_belongs_to_many and has_many assosociations [DHH]
3386 * MySQL: fixes for the bundled mysql.rb driver.  #3160 [Justin Forder]
3388 * SQLServer: fix obscure optimistic locking bug.  #3068 [kajism@yahoo.com]
3390 * SQLServer: support uniqueidentifier columns.  #2930 [keithm@infused.org]
3392 * SQLServer: cope with tables names qualified by owner.  #3067 [jeff@ministrycentered.com]
3394 * SQLServer: cope with columns with "desc" in the name.  #1950 [Ron Lusk, Ryan Tomayko]
3396 * SQLServer: cope with primary keys with "select" in the name.  #3057 [rdifrango@captechventures.com]
3398 * Oracle: active? performs a select instead of a commit.  #3133 [Michael Schoen]
3400 * MySQL: more robust test for nullified result hashes.  #3124 [Stefan Kaes]
3402 * Reloading an instance refreshes its aggregations as well as its associations.  #3024 [François Beausolei]
3404 * Fixed that using :include together with :conditions array in Base.find would cause NoMethodError #2887 [Paul Hammmond]
3406 * PostgreSQL: more robust sequence name discovery.  #3087 [Rick Olson]
3408 * Oracle: use syntax compatible with Oracle 8.  #3131 [Michael Schoen]
3410 * MySQL: work around ruby-mysql/mysql-ruby inconsistency with mysql.stat.  Eliminate usage of mysql.ping because it doesn't guarantee reconnect.  Explicitly close and reopen the connection instead.  [Jeremy Kemper]
3412 * Added preliminary support for polymorphic associations [DHH]
3414 * Added preliminary support for join models [DHH]
3416 * Allow validate_uniqueness_of to be scoped by more than just one column.  #1559. [jeremy@jthopple.com, Marcel Molina Jr.]
3418 * Firebird: active? and reconnect! methods for handling stale connections.  #428 [Ken Kunz <kennethkunz@gmail.com>]
3420 * Firebird: updated for FireRuby 0.4.0.  #3009 [Ken Kunz <kennethkunz@gmail.com>]
3422 * MySQL and PostgreSQL: active? compatibility with the pure-Ruby driver.  #428 [Jeremy Kemper]
3424 * Oracle: active? check pings the database rather than testing the last command status.  #428 [Michael Schoen]
3426 * SQLServer: resolve column aliasing/quoting collision when using limit or offset in an eager find.  #2974 [kajism@yahoo.com]
3428 * Reloading a model doesn't lose track of its connection.  #2996 [junk@miriamtech.com, Jeremy Kemper]
3430 * Fixed bug where using update_attribute after pushing a record to a habtm association of the object caused duplicate rows in the join table. #2888 [colman@rominato.com, Florian Weber, Michael Schoen]
3432 * MySQL, PostgreSQL: reconnect! also reconfigures the connection.  Otherwise, the connection 'loses' its settings if it times out and is reconnected.  #2978 [Shugo Maeda]
3434 * has_and_belongs_to_many: use JOIN instead of LEFT JOIN.  [Jeremy Kemper]
3436 * MySQL: introduce :encoding option to specify the character set for client, connection, and results.  Only available for MySQL 4.1 and later with the mysql-ruby driver.  Do SHOW CHARACTER SET in mysql client to see available encodings.  #2975 [Shugo Maeda]
3438 * Add tasks to create, drop and rebuild the MySQL and PostgreSQL test  databases. [Marcel Molina Jr.]
3440 * Correct boolean handling in generated reader methods.  #2945 [don.park@gmail.com, Stefan Kaes]
3442 * Don't generate read methods for columns whose names are not valid ruby method names.  #2946 [Stefan Kaes]
3444 * Document :force option to create_table.  #2921 [Blair Zajac <blair@orcaware.com>]
3446 * Don't add the same conditions twice in has_one finder sql.  #2916 [Jeremy Evans]
3448 * Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
3450 * Introducing the Firebird adapter.  Quote columns and use attribute_condition more consistently.  Setup guide: http://wiki.rubyonrails.com/rails/pages/Firebird+Adapter  #1874 [Ken Kunz <kennethkunz@gmail.com>]
3452 * SQLServer: active? and reconnect! methods for handling stale connections.  #428 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
3454 * Associations handle case-equality more consistently: item.parts.is_a?(Array) and item.parts === Array.  #1345 [MarkusQ@reality.com]
3456 * SQLServer: insert uses given primary key value if not nil rather than SELECT @@IDENTITY.  #2866 [kajism@yahoo.com, Tom Ward <tom@popdog.net>]
3458 * Oracle: active? and reconnect! methods for handling stale connections.  Optionally retry queries after reconnect.  #428 [Michael Schoen <schoenm@earthlink.net>]
3460 * Correct documentation for Base.delete_all.  #1568 [Newhydra]
3462 * Oracle: test case for column default parsing.  #2788 [Michael Schoen <schoenm@earthlink.net>]
3464 * Update documentation for Migrations.  #2861 [Tom Werner <tom@cube6media.com>]
3466 * When AbstractAdapter#log rescues an exception, attempt to detect and reconnect to an inactive database connection.  Connection adapter must respond to the active? and reconnect! instance methods.  Initial support for PostgreSQL, MySQL, and SQLite.  Make certain that all statements which may need reconnection are performed within a logged block: for example, this means no avoiding log(sql, name) { } if @logger.nil?  #428 [Jeremy Kemper]
3468 * Oracle: Much faster column reflection.  #2848 [Michael Schoen <schoenm@earthlink.net>]
3470 * Base.reset_sequence_name analogous to reset_table_name (mostly useful for testing).  Base.define_attr_method allows nil values.  [Jeremy Kemper]
3472 * PostgreSQL: smarter sequence name defaults, stricter last_insert_id, warn on pk without sequence.  [Jeremy Kemper]
3474 * PostgreSQL: correctly discover custom primary key sequences.  #2594 [Blair Zajac <blair@orcaware.com>, meadow.nnick@gmail.com, Jeremy Kemper]
3476 * SQLServer: don't report limits for unsupported field types.  #2835 [Ryan Tomayko]
3478 * Include the Enumerable module in ActiveRecord::Errors.  [Rick Bradley <rick@rickbradley.com>]
3480 * Add :group option, correspond to GROUP BY, to the find method and to the has_many association.  #2818 [rubyonrails@atyp.de]
3482 * Don't cast nil or empty strings to a dummy date.  #2789 [Rick Bradley <rick@rickbradley.com>]
3484 * acts_as_list plays nicely with inheritance by remembering the class which declared it.  #2811 [rephorm@rephorm.com]
3486 * Fix sqlite adaptor's detection of missing dbfile or database declaration. [Nicholas Seckar]
3488 * Fixed acts_as_list for definitions without an explicit :order #2803 [jonathan@bluewire.net.nz]
3490 * Upgrade bundled ruby-mysql 0.2.4 with mysql411 shim (see #440) to ruby-mysql 0.2.6 with a patchset for 4.1 protocol support.  Local change [301] is now a part of the main driver; reapplied local change [2182].  Removed GC.start from Result.free.  [tommy@tmtm.org, akuroda@gmail.com, Doug Fales <doug.fales@gmail.com>, Jeremy Kemper]
3492 * Correct handling of complex order clauses with SQL Server limit emulation.  #2770 [Tom Ward <tom@popdog.net>, Matt B.]
3494 * Correct whitespace problem in Oracle default column value parsing.  #2788 [rick@rickbradley.com]
3496 * Destroy associated has_and_belongs_to_many records after all before_destroy callbacks but before destroy.  This allows you to act on the habtm association as you please while preserving referential integrity.  #2065 [larrywilliams1@gmail.com, sam.kirchmeier@gmail.com, elliot@townx.org, Jeremy Kemper]
3498 * Deprecate the old, confusing :exclusively_dependent option in favor of :dependent => :delete_all.  [Jeremy Kemper]
3500 * More compatible Oracle column reflection.  #2771 [Ryan Davis <ryand-ruby@zenspider.com>, Michael Schoen <schoenm@earthlink.net>]
3503 *1.13.0* (November 7th, 2005)
3505 * Fixed faulty regex in get_table_name method (SQLServerAdapter) #2639 [Ryan Tomayko]
3507 * Added :include as an option for association declarations [DHH]. Example:
3509     has_many :posts, :include => [ :author, :comments ]
3511 * Rename Base.constrain to Base.with_scope so it doesn't conflict with existing concept of database constraints.  Make scoping more robust: uniform method => parameters, validated method names and supported finder parameters, raise exception on nested scopes.  [Jeremy Kemper]  Example:
3513     Comment.with_scope(:find => { :conditions => 'active=true' }, :create => { :post_id => 5 }) do
3514       # Find where name = ? and active=true
3515       Comment.find :all, :conditions => ['name = ?', name]
3516       # Create comment associated with :post_id
3517       Comment.create :body => "Hello world"
3518     end
3520 * Fixed that SQL Server should ignore :size declarations on anything but integer and string in the agnostic schema representation #2756 [Ryan Tomayko]
3522 * Added constrain scoping for creates using a hash of attributes bound to the :creation key [DHH]. Example:
3524     Comment.constrain(:creation => { :post_id => 5 }) do
3525       # Associated with :post_id
3526       Comment.create :body => "Hello world"
3527     end
3528   
3529   This is rarely used directly, but allows for find_or_create on associations. So you can do:
3530   
3531     # If the tag doesn't exist, a new one is created that's associated with the person
3532     person.tags.find_or_create_by_name("Summer")
3534 * Added find_or_create_by_X as a second type of dynamic finder that'll create the record if it doesn't already exist [DHH]. Example:
3536     # No 'Summer' tag exists
3537     Tag.find_or_create_by_name("Summer") # equal to Tag.create(:name => "Summer")
3538     
3539     # Now the 'Summer' tag does exist
3540     Tag.find_or_create_by_name("Summer") # equal to Tag.find_by_name("Summer")
3542 * Added extension capabilities to has_many and has_and_belongs_to_many proxies [DHH]. Example:
3544     class Account < ActiveRecord::Base
3545       has_many :people do
3546         def find_or_create_by_name(name)
3547           first_name, *last_name = name.split
3548           last_name = last_name.join " "
3550           find_or_create_by_first_name_and_last_name(first_name, last_name)
3551         end
3552       end
3553     end
3555     person = Account.find(:first).people.find_or_create_by_name("David Heinemeier Hansson")
3556     person.first_name # => "David"
3557     person.last_name  # => "Heinemeier Hansson"
3559   Note that the anoymous module must be declared using brackets, not do/end (due to order of evaluation).
3561 * Omit internal dtproperties table from SQLServer table list.  #2729 [rtomayko@gmail.com]
3563 * Quote column names in generated SQL.  #2728 [rtomayko@gmail.com]
3565 * Correct the pure-Ruby MySQL 4.1.1 shim's version test.  #2718 [Jeremy Kemper]
3567 * Add Model.create! to match existing model.save! method.  When save! raises RecordInvalid, you can catch the exception, retrieve the invalid record (invalid_exception.record), and see its errors (invalid_exception.record.errors).  [Jeremy Kemper]
3569 * Correct fixture behavior when table name pluralization is off.  #2719 [Rick Bradley <rick@rickbradley.com>]
3571 * Changed :dbfile to :database for SQLite adapter for consistency (old key still works as an alias) #2644 [Dan Peterson]
3573 * Added migration support for Oracle #2647 [Michael Schoen]
3575 * Worked around that connection can't be reset if allow_concurrency is off.  #2648 [Michael Schoen <schoenm@earthlink.net>]
3577 * Fixed SQL Server adapter to pass even more tests and do even better #2634 [rtomayko@gmail.com]
3579 * Fixed SQL Server adapter so it honors options[:conditions] when applying :limits #1978 [Tom Ward]
3581 * Added migration support to SQL Server adapter (please someone do the same for Oracle and DB2) #2625 [Tom Ward]
3583 * Use AR::Base.silence rather than AR::Base.logger.silence in fixtures to preserve Log4r compatibility.  #2618 [dansketcher@gmail.com]
3585 * Constraints are cloned so they can't be inadvertently modified while they're
3586 in effect.  Added :readonly finder constraint.  Calling an association collection's class method (Part.foobar via item.parts.foobar) constrains :readonly => false since the collection's :joins constraint would otherwise force it to true.  [Jeremy Kemper <rails@bitsweat.net>]
3588 * Added :offset and :limit to the kinds of options that Base.constrain can use #2466 [duane.johnson@gmail.com]
3590 * Fixed handling of nil number columns on Oracle and cleaned up tests for Oracle in general #2555 [schoenm@earthlink.net]
3592 * Added quoted_true and quoted_false methods and tables to db2_adapter and cleaned up tests for DB2 #2493, #2624 [maik schmidt]
3595 *1.12.2* (October 26th, 2005)
3597 * Allow symbols to rename columns when using SQLite adapter. #2531 [kevin.clark@gmail.com]
3599 * Map Active Record time to SQL TIME.  #2575, #2576 [Robby Russell <robby@planetargon.com>]
3601 * Clarify semantics of ActiveRecord::Base#respond_to?  #2560 [skaes@web.de]
3603 * Fixed Association#clear for associations which have not yet been accessed. #2524 [Patrick Lenz <patrick@lenz.sh>]
3605 * HABTM finders shouldn't return readonly records.  #2525 [Patrick Lenz <patrick@lenz.sh>]
3607 * Make all tests runnable on their own. #2521. [Blair Zajac <blair@orcaware.com>]
3610 *1.12.1* (October 19th, 2005)
3612 * Always parenthesize :conditions options so they may be safely combined with STI and constraints.
3614 * Correct PostgreSQL primary key sequence detection.  #2507 [tmornini@infomania.com]
3616 * Added support for using limits in eager loads that involve has_many and has_and_belongs_to_many associations
3619 *1.12.0* (October 16th, 2005)
3621 * Update/clean up documentation (rdoc)
3623 * PostgreSQL sequence support.  Use set_sequence_name in your model class to specify its primary key sequence.  #2292 [Rick Olson <technoweenie@gmail.com>, Robby Russell <robby@planetargon.com>]
3625 * Change default logging colors to work on both white and black backgrounds. [Sam Stephenson]
3627 * YAML fixtures support ordered hashes for fixtures with foreign key dependencies in the same table.  #1896 [purestorm@ggnore.net]
3629 * :dependent now accepts :nullify option. Sets the foreign key of the related objects to NULL instead of deleting them. #2015 [Robby Russell <robby@planetargon.com>] 
3631 * Introduce read-only records.  If you call object.readonly! then it will mark the object as read-only and raise ReadOnlyRecord if you call object.save.  object.readonly? reports whether the object is read-only.  Passing :readonly => true to any finder method will mark returned records as read-only.  The :joins option now implies :readonly, so if you use this option, saving the same record will now fail.  Use find_by_sql to work around.
3633 * Avoid memleak in dev mode when using fcgi
3635 * Simplified .clear on active record associations by using the existing delete_records method. #1906 [Caleb <me@cpb.ca>]
3637 * Delegate access to a customized primary key to the conventional id method. #2444. [Blair Zajac <blair@orcaware.com>]
3639 * Fix errors caused by assigning a has-one or belongs-to property to itself
3641 * Add ActiveRecord::Base.schema_format setting which specifies how databases should be dumped [Sam Stephenson]
3643 * Update DB2 adapter. #2206. [contact@maik-schmidt.de]
3645 * Corrections to SQLServer native data types. #2267.  [rails.20.clarry@spamgourmet.com]
3647 * Deprecated ActiveRecord::Base.threaded_connection in favor of ActiveRecord::Base.allow_concurrency.
3649 * Protect id attribute from mass assigment even when the primary key is set to something else. #2438. [Blair Zajac <blair@orcaware.com>]
3651 * Misc doc fixes (typos/grammar/etc.). #2430. [coffee2code]
3653 * Add test coverage for content_columns. #2432. [coffee2code]
3655 * Speed up for unthreaded environments. #2431. [skaes@web.de]
3657 * Optimization for Mysql selects using mysql-ruby extension greater than 2.6.3.  #2426. [skaes@web.de]
3659 * Speed up the setting of table_name. #2428. [skaes@web.de]
3661 * Optimize instantiation of STI subclass records. In partial fullfilment of #1236. [skaes@web.de]
3663 * Fix typo of 'constrains' to 'contraints'. #2069. [Michael Schuerig <michael@schuerig.de>]
3665 * Optimization refactoring for add_limit_offset!. In partial fullfilment of #1236. [skaes@web.de]
3667 * Add ability to get all siblings, including the current child, with acts_as_tree. Recloses #2140. [Michael Schuerig <michael@schuerig.de>]
3669 * Add geometric type for postgresql adapter. #2233 [akaspick@gmail.com]
3671 * Add option (true by default) to generate reader methods for each attribute of a record to avoid the overhead of calling method missing. In partial fullfilment of #1236. [skaes@web.de]
3673 * Add convenience predicate methods on Column class. In partial fullfilment of #1236. [skaes@web.de]
3675 * Raise errors when invalid hash keys are passed to ActiveRecord::Base.find. #2363  [Chad Fowler <chad@chadfowler.com>, Nicholas Seckar]
3677 * Added :force option to create_table that'll try to drop the table if it already exists before creating
3679 * Fix transactions so that calling return while inside a transaction will not leave an open transaction on the connection. [Nicholas Seckar]
3681 * Use foreign_key inflection uniformly.  #2156 [Blair Zajac <blair@orcaware.com>]
3683 * model.association.clear should destroy associated objects if :dependent => true instead of nullifying their foreign keys.  #2221 [joergd@pobox.com, ObieFernandez <obiefernandez@gmail.com>]
3685 * Returning false from before_destroy should cancel the action.  #1829 [Jeremy Huffman]
3687 * Recognize PostgreSQL NOW() default as equivalent to CURRENT_TIMESTAMP or CURRENT_DATE, depending on the column's type.  #2256 [mat <mat@absolight.fr>]
3689 * Extensive documentation for the abstract database adapter.  #2250 [François Beausoleil <fbeausoleil@ftml.net>]
3691 * Clean up Fixtures.reset_sequences for PostgreSQL.  Handle tables with no rows and models with custom primary keys.  #2174, #2183 [jay@jay.fm, Blair Zajac <blair@orcaware.com>]
3693 * Improve error message when nil is assigned to an attr which validates_size_of within a range.  #2022 [Manuel Holtgrewe <purestorm@ggnore.net>]
3695 * Make update_attribute use the same writer method that update_attributes uses.
3696  #2237 [trevor@protocool.com]
3698 * Make migrations honor table name prefixes and suffixes. #2298 [Jakob S, Marcel Molina]
3700 * Correct and optimize PostgreSQL bytea escaping.  #1745, #1837 [dave@cherryville.org, ken@miriamtech.com, bellis@deepthought.org]
3702 * Fixtures should only reset a PostgreSQL sequence if it corresponds to an integer primary key named id.  #1749 [chris@chrisbrinker.com]
3704 * Standardize the interpretation of boolean columns in the Mysql and Sqlite adapters. (Use MysqlAdapter.emulate_booleans = false to disable this behavior)
3706 * Added new symbol-driven approach to activating observers with Base#observers= [DHH]. Example:
3708     ActiveRecord::Base.observers = :cacher, :garbage_collector
3710 * Added AbstractAdapter#select_value and AbstractAdapter#select_values as convenience methods for selecting single values, instead of hashes, of the first column in a SELECT #2283 [solo@gatelys.com]
3712 * Wrap :conditions in parentheses to prevent problems with OR's #1871 [Jamis Buck]
3714 * Allow the postgresql adapter to work with the SchemaDumper. [Jamis Buck]
3716 * Add ActiveRecord::SchemaDumper for dumping a DB schema to a pure-ruby file, making it easier to consolidate large migration lists and port database schemas between databases. [Jamis Buck]
3718 * Fixed migrations for Windows when using more than 10 [David Naseby]
3720 * Fixed that the create_x method from belongs_to wouldn't save the association properly #2042 [Florian Weber]
3722 * Fixed saving a record with two unsaved belongs_to associations pointing to the same object #2023 [Tobias Luetke]
3724 * Improved migrations' behavior when the schema_info table is empty. [Nicholas Seckar]
3726 * Fixed that Observers didn't observe sub-classes #627 [Florian Weber]
3728 * Fix eager loading error messages, allow :include to specify tables using strings or symbols. Closes #2222 [Marcel Molina]
3730 * Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae]
3732 * Fixed various problems with has_and_belongs_to_many when using customer finder_sql #2094 [Florian Weber]
3734 * Added better exception error when unknown column types are used with migrations #1814 [fbeausoleil@ftml.net]
3736 * Fixed "connection lost" issue with the bundled Ruby/MySQL driver (would kill the app after 8 hours of inactivity) #2163, #428 [kajism@yahoo.com]
3738 * Fixed comparison of Active Record objects so two new objects are not equal #2099 [deberg]
3740 * Fixed that the SQL Server adapter would sometimes return DBI::Timestamp objects instead of Time #2127 [Tom Ward]
3742 * Added the instance methods #root and #ancestors on acts_as_tree and fixed siblings to not include the current node #2142, #2140 [coffee2code]
3744 * Fixed that Active Record would call SHOW FIELDS twice (or more) for the same model when the cached results were available #1947 [sd@notso.net]
3746 * Added log_level and use_silence parameter to ActiveRecord::Base.benchmark. The first controls at what level the benchmark statement will be logged (now as debug, instead of info) and the second that can be passed false to include all logging statements during the benchmark block/
3748 * Make sure the schema_info table is created before querying the current version #1903
3750 * Fixtures ignore table name prefix and suffix #1987 [Jakob S]
3752 * Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com]
3754 * Modify read_attribute to allow a symbol argument #2024 [Ken Kunz]
3756 * Make destroy return self #1913 [sebastian.kanthak@muehlheim.de]
3758 * Fix typo in validations documentation #1938 [court3nay]
3760 * Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]
3762 * Fix typo in count_by_sql documentation #1969 [Alexey Verkhovsky]
3764 * Allow add_column and create_table to specify NOT NULL #1712 [emptysands@gmail.com]
3766 * Fix create_table so that id column is implicitly added [Rick Olson]
3768 * Default sequence names for Oracle changed to #{table_name}_seq, which is the most commonly used standard. In addition, a new method ActiveRecord::Base#set_sequence_name allows the developer to set the sequence name per model. This is a non-backwards-compatible change -- anyone using the old-style "rails_sequence" will need to either create new sequences, or set: ActiveRecord::Base.set_sequence_name = "rails_sequence" #1798
3770 * OCIAdapter now properly handles synonyms, which are commonly used to separate out the schema owner from the application user #1798
3772 * Fixed the handling of camelCase columns names in Oracle #1798
3774 * Implemented for OCI the Rakefile tasks of :clone_structure_to_test, :db_structure_dump, and :purge_test_database, which enable Oracle folks to enjoy all the agile goodness of Rails for testing. Note that the current implementation is fairly limited -- only tables and sequences are cloned, not constraints or indexes. A full clone in Oracle generally requires some manual effort, and is version-specific. Post 9i, Oracle recommends the use of the DBMS_METADATA package, though that approach requires editing of the physical characteristics generated #1798
3776 * Fixed the handling of multiple blob columns in Oracle if one or more of them are null #1798
3778 * Added support for calling constrained class methods on has_many and has_and_belongs_to_many collections #1764 [Tobias Luetke]
3780     class Comment < AR:B
3781       def self.search(q)
3782         find(:all, :conditions => ["body = ?", q])
3783       end
3784     end 
3786     class Post < AR:B
3787       has_many :comments
3788     end
3790     Post.find(1).comments.search('hi') # => SELECT * from comments WHERE post_id = 1 AND body = 'hi'
3791   
3792   NOTICE: This patch changes the underlying SQL generated by has_and_belongs_to_many queries. If your relying on that, such as
3793   by explicitly referencing the old t and j aliases, you'll need to update your code. Of course, you _shouldn't_ be relying on
3794   details like that no less than you should be diving in to touch private variables. But just in case you do, consider yourself
3795   noticed :)
3797 * Added migration support for SQLite (using temporary tables to simulate ALTER TABLE) #1771 [Sam Stephenson]
3799 * Remove extra definition of supports_migrations? from abstract_adaptor.rb [Nicholas Seckar]
3801 * Fix acts_as_list so that moving next-to-last item to the bottom does not result in duplicate item positions
3803 * Fixed incompatibility in DB2 adapter with the new limit/offset approach #1718 [Maik Schmidt]
3805 * Added :select option to find which can specify a different value than the default *, like find(:all, :select => "first_name, last_name"), if you either only want to select part of the columns or exclude columns otherwise included from a join #1338 [Stefan Kaes]
3808 *1.11.1* (11 July, 2005)
3810 * Added support for limit and offset with eager loading of has_one and belongs_to associations. Using the options with has_many and has_and_belongs_to_many associations will now raise an ActiveRecord::ConfigurationError #1692 [Rick Olsen]
3812 * Fixed that assume_bottom_position (in acts_as_list) could be called on items already last in the list and they would move one position away from the list #1648 [tyler@kianta.com]
3814 * Added ActiveRecord::Base.threaded_connections flag to turn off 1-connection per thread (required for thread safety). By default it's on, but WEBrick in Rails need it off #1685 [Sam Stephenson]
3816 * Correct reflected table name for singular associations.  #1688 [court3nay@gmail.com]
3818 * Fixed optimistic locking with SQL Server #1660 [tom@popdog.net]
3820 * Added ActiveRecord::Migrator.migrate that can figure out whether to go up or down based on the target version and the current
3822 * Added better error message for "packets out of order" #1630 [courtenay]
3824 * Fixed first run of "rake migrate" on PostgreSQL by not expecting a return value on the id #1640
3827 *1.11.0* (6 July, 2005)
3829 * Fixed that Yaml error message in fixtures hid the real error #1623 [Nicholas Seckar]
3831 * Changed logging of SQL statements to use the DEBUG level instead of INFO
3833 * Added new Migrations framework for describing schema transformations in a way that can be easily applied across multiple databases #1604 [Tobias Luetke] See documentation under ActiveRecord::Migration and the additional support in the Rails rakefile/generator.
3835 * Added callback hooks to association collections #1549 [Florian Weber]. Example:
3837     class Project
3838       has_and_belongs_to_many :developers, :before_add => :evaluate_velocity
3839     
3840       def evaluate_velocity(developer)
3841         ...
3842       end
3843     end 
3844   
3845   ..raising an exception will cause the object not to be added (or removed, with before_remove).
3846     
3848 * Fixed Base.content_columns call for SQL Server adapter #1450 [DeLynn Berry]
3850 * Fixed Base#write_attribute to work with both symbols and strings #1190 [Paul Legato]
3852 * Fixed that has_and_belongs_to_many didn't respect single table inheritance types #1081 [Florian Weber]
3854 * Speed up ActiveRecord#method_missing for the common case (read_attribute).
3856 * Only notify observers on after_find and after_initialize if these methods are defined on the model.  #1235 [skaes@web.de]
3858 * Fixed that single-table inheritance sub-classes couldn't be used to limit the result set with eager loading #1215 [Chris McGrath]
3860 * Fixed validates_numericality_of to work with overrided getter-method when :allow_nil is on #1316 [raidel@onemail.at]
3862 * Added roots, root, and siblings to the batch of methods added by acts_as_tree #1541 [michael@schuerig.de]
3864 * Added support for limit/offset with the MS SQL Server driver so that pagination will now work #1569 [DeLynn Berry]
3866 * Added support for ODBC connections to MS SQL Server so you can connect from a non-Windows machine #1569 [Mark Imbriaco/DeLynn Berry]
3868 * Fixed that multiparameter posts ignored attr_protected #1532 [alec+rails@veryclever.net]
3870 * Fixed problem with eager loading when using a has_and_belongs_to_many association using :association_foreign_key #1504 [flash@vanklinkenbergsoftware.nl]
3872 * Fixed Base#find to honor the documentation on how :joins work and make them consistent with Base#count #1405 [pritchie@gmail.com]. What used to be:
3874     Developer.find :all, :joins => 'developers_projects', :conditions => 'id=developer_id AND project_id=1'
3875   
3876   ...should instead be:
3877   
3878     Developer.find(
3879       :all, 
3880       :joins => 'LEFT JOIN developers_projects ON developers.id = developers_projects.developer_id', 
3881       :conditions => 'project_id=1'
3882     )    
3884 * Fixed that validations didn't respecting custom setting for too_short, too_long messages #1437 [Marcel Molina]
3886 * Fixed that clear_association_cache doesn't delete new associations on new records (so you can safely place new records in the session with Action Pack without having new associations wiped) #1494 [cluon]
3888 * Fixed that calling Model.find([]) returns [] and doesn't throw an exception #1379
3890 * Fixed that adding a record to a has_and_belongs_to collection would always save it -- now it only saves if its a new record #1203 [Alisdair McDiarmid]
3892 * Fixed saving of in-memory association structures to happen as a after_create/after_update callback instead of after_save -- that way you can add new associations in after_create/after_update callbacks without getting them saved twice
3894 * Allow any Enumerable, not just Array, to work as bind variables #1344 [Jeremy Kemper]
3896 * Added actual database-changing behavior to collection assigment for has_many and has_and_belongs_to_many #1425 [Sebastian Kanthak].
3897   Example:
3899     david.projects = [Project.find(1), Project.new("name" => "ActionWebSearch")]
3900     david.save
3901   
3902   If david.projects already contain the project with ID 1, this is left unchanged. Any other projects are dropped. And the new
3903   project is saved when david.save is called.
3904   
3905   Also included is a way to do assignments through IDs, which is perfect for checkbox updating, so you get to do:
3906   
3907     david.project_ids = [1, 5, 7]
3909 * Corrected typo in find SQL for has_and_belongs_to_many.  #1312 [ben@bensinclair.com]
3911 * Fixed sanitized conditions for has_many finder method.  #1281 [jackc@hylesanderson.com, pragdave, Tobias Luetke]
3913 * Comprehensive PostgreSQL schema support.  Use the optional schema_search_path directive in database.yml to give a comma-separated list of schemas to search for your tables.  This allows you, for example, to have tables in a shared schema without having to use a custom table name.  See http://www.postgresql.org/docs/8.0/interactive/ddl-schemas.html to learn more.  #827 [dave@cherryville.org]
3915 * Corrected @@configurations typo #1410 [david@ruppconsulting.com]
3917 * Return PostgreSQL columns in the order they were declared #1374 [perlguy@gmail.com]
3919 * Allow before/after update hooks to work on models using optimistic locking 
3921 * Eager loading of dependent has_one associations won't delete the association #1212
3923 * Added a second parameter to the build and create method for has_one that controls whether the existing association should be replaced (which means nullifying its foreign key as well). By default this is true, but false can be passed to prevent it.
3925 * Using transactional fixtures now causes the data to be loaded only once.
3927 * Added fixture accessor methods that can be used when instantiated fixtures are disabled.
3929     fixtures :web_sites
3931     def test_something
3932       assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
3933     end
3935 * Added DoubleRenderError exception that'll be raised if render* is called twice #518 [Nicholas Seckar]
3937 * Fixed exceptions occuring after render has been called #1096 [Nicholas Seckar]
3939 * CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make "  " fail the validation where it didn't before #1309
3941 * Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead
3943 * Added the :if option to all validations that can either use a block or a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]. Examples:
3945   Conditional validations such as the following are made possible:
3946     validates_numericality_of :income, :if => :employed?
3948   Conditional validations can also solve the salted login generator problem:
3949     validates_confirmation_of :password, :if => :new_password?
3950   
3951   Using blocks:
3952     validates_presence_of :username, :if => Proc.new { |user| user.signup_step > 1 }
3954 * Fixed use of construct_finder_sql when using :join #1288 [dwlt@dwlt.net]
3956 * Fixed that :delete_sql in has_and_belongs_to_many associations couldn't access record properties #1299 [Rick Olson]
3958 * Fixed that clone would break when an aggregate had the same name as one of its attributes #1307 [Jeremy Kemper]
3960 * Changed that destroying an object will only freeze the attributes hash, which keeps the object from having attributes changed (as that wouldn't make sense), but allows for the querying of associations after it has been destroyed.
3962 * Changed the callbacks such that observers are notified before the in-object callbacks are triggered. Without this change, it wasn't possible to act on the whole object in something like a before_destroy observer without having the objects own callbacks (like deleting associations) called first.
3964 * Added option for passing an array to the find_all version of the dynamic finders and have it evaluated as an IN fragment. Example:
3966     # SELECT * FROM topics WHERE title IN ('First', 'Second')
3967     Topic.find_all_by_title(["First", "Second"])
3969 * Added compatibility with camelCase column names for dynamic finders #533 [Dee.Zsombor]
3971 * Fixed extraneous comma in count() function that made it not work with joins #1156 [jarkko/Dee.Zsombor]
3973 * Fixed incompatibility with Base#find with an array of ids that would fail when using eager loading #1186 [Alisdair McDiarmid]
3975 * Fixed that validate_length_of lost :on option when :within was specified #1195 [jhosteny@mac.com]
3977 * Added encoding and min_messages options for PostgreSQL #1205 [shugo]. Configuration example:
3979     development:
3980       adapter: postgresql
3981       database: rails_development
3982       host: localhost
3983       username: postgres
3984       password:
3985       encoding: UTF8
3986       min_messages: ERROR
3988 * Fixed acts_as_list where deleting an item that was removed from the list would ruin the positioning of other list items #1197 [Jamis Buck]
3990 * Added validates_exclusion_of as a negative of validates_inclusion_of
3992 * Optimized counting of has_many associations by setting the association to empty if the count is 0 so repeated calls doesn't trigger database calls
3995 *1.10.1* (20th April, 2005)
3997 * Fixed frivilous database queries being triggered with eager loading on empty associations and other things
3999 * Fixed order of loading in eager associations
4001 * Fixed stray comma when using eager loading and ordering together from has_many associations #1143
4004 *1.10.0* (19th April, 2005)
4006 * Added eager loading of associations as a way to solve the N+1 problem more gracefully without piggy-back queries. Example:
4008     for post in Post.find(:all, :limit => 100)
4009       puts "Post:            " + post.title
4010       puts "Written by:      " + post.author.name
4011       puts "Last comment on: " + post.comments.first.created_on
4012     end
4013   
4014   This used to generate 301 database queries if all 100 posts had both author and comments. It can now be written as:
4015   
4016     for post in Post.find(:all, :limit => 100, :include => [ :author, :comments ])
4018   ...and the number of database queries needed is now 1.
4020 * Added new unified Base.find API and deprecated the use of find_first and find_all. See the documentation for Base.find. Examples:
4022     Person.find(1, :conditions => "administrator = 1", :order => "created_on DESC")
4023     Person.find(1, 5, 6, :conditions => "administrator = 1", :order => "created_on DESC")
4024     Person.find(:first, :order => "created_on DESC", :offset => 5)
4025     Person.find(:all, :conditions => [ "category IN (?)", categories], :limit => 50)
4026     Person.find(:all, :offset => 10, :limit => 10)
4028 * Added acts_as_nested_set #1000 [wschenk]. Introduction:
4030     This acts provides Nested Set functionality.  Nested Set is similiar to Tree, but with
4031     the added feature that you can select the children and all of it's descendants with
4032     a single query.  A good use case for this is a threaded post system, where you want
4033     to display every reply to a comment without multiple selects.
4035 * Added Base.save! that attempts to save the record just like Base.save but will raise a RecordInvalid exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
4037 * Fixed PostgreSQL usage of fixtures with regards to public schemas and table names with dots #962 [gnuman1@gmail.com]
4039 * Fixed that fixtures were being deleted in the same order as inserts causing FK errors #890 [andrew.john.peters@gmail.com]
4041 * Fixed loading of fixtures in to be in the right order (or PostgreSQL would bark) #1047 [stephenh@chase3000.com]
4043 * Fixed page caching for non-vhost applications living underneath the root #1004 [Ben Schumacher]
4045 * Fixes a problem with the SQL Adapter which was resulting in IDENTITY_INSERT not being set to ON when it should be #1104 [adelle]
4047 * Added the option to specify the acceptance string in validates_acceptance_of #1106 [caleb@aei-tech.com]
4049 * Added insert_at(position) to acts_as_list #1083 [DeLynnB]
4051 * Removed the default order by id on has_and_belongs_to_many queries as it could kill performance on large sets (you can still specify by hand with :order)
4053 * Fixed that Base.silence should restore the old logger level when done, not just set it to DEBUG #1084 [yon@milliped.com]
4055 * Fixed boolean saving on Oracle #1093 [mparrish@pearware.org]
4057 * Moved build_association and create_association for has_one and belongs_to out of deprecation as they work when the association is nil unlike association.build and association.create, which require the association to be already in place #864
4059 * Added rollbacks of transactions if they're active as the dispatcher is killed gracefully (TERM signal) #1054 [Leon Bredt]
4061 * Added quoting of column names for fixtures #997 [jcfischer@gmail.com]
4063 * Fixed counter_sql when no records exist in database for PostgreSQL (would give error, not 0) #1039 [Caleb Tennis]
4065 * Fixed that benchmarking times for rendering included db runtimes #987 [skaes@web.de]
4067 * Fixed boolean queries for t/f fields in PostgreSQL #995 [dave@cherryville.org]
4069 * Added that model.items.delete(child) will delete the child, not just set the foreign key to nil, if the child is dependent on the model #978 [Jeremy Kemper]
4071 * Fixed auto-stamping of dates (created_on/updated_on) for PostgreSQL #985 [dave@cherryville.org]
4073 * Fixed Base.silence/benchmark to only log if a logger has been configured #986 [skaes@web.de]
4075 * Added a join parameter as the third argument to Base.find_first and as the second to Base.count #426, #988 [skaes@web.de]
4077 * Fixed bug in Base#hash method that would treat records with the same string-based id as different [Dave Thomas]
4079 * Renamed DateHelper#distance_of_time_in_words_to_now to DateHelper#time_ago_in_words (old method name is still available as a deprecated alias)
4082 *1.9.1* (27th March, 2005)
4084 * Fixed that Active Record objects with float attribute could not be cloned #808
4086 * Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
4088 * Fixed that :counter_cache option would look for a line_items_count column for a LineItem object instead of lineitems_count
4090 * Fixed that AR exists?() would explode on postgresql if the passed id did not match the PK type #900 [Scott Barron]
4092 * Fixed the MS SQL adapter to work with the new limit/offset approach and with binary data (still suffering from 7KB limit, though) #901 [delynnb]
4095 *1.9.0* (22th March, 2005)
4097 * Added adapter independent limit clause as a two-element array with the first being the limit, the second being the offset #795 [Sam Stephenson]. Example:
4099     Developer.find_all nil, 'id ASC', 5      # return the first five developers 
4100     Developer.find_all nil, 'id ASC', [3, 8] # return three developers, starting from #8 and forward
4101     
4102   This doesn't yet work with the DB2 or MS SQL adapters. Patches to make that happen are encouraged. 
4104 * Added alias_method :to_param, :id to Base, such that Active Record objects to be used as URL parameters in Action Pack automatically #812 [Nicholas Seckar/Sam Stephenson]
4106 * Improved the performance of the OCI8 adapter for Oracle #723 [pilx/gjenkins]
4108 * Added type conversion before saving a record, so string-based values like "10.0" aren't left for the database to convert #820 [dave@cherryville.org]
4110 * Added with additional settings for working with transactional fixtures and pre-loaded test databases #865 [mindel]
4112 * Fixed acts_as_list to trigger remove_from_list on destroy after the fact, not before, so a unique position can be maintained #871 [Alisdair McDiarmid]
4114 * Added the possibility of specifying fixtures in multiple calls #816 [kim@tinker.com]
4116 * Added Base.exists?(id) that'll return true if an object of the class with the given id exists #854 [stian@grytoyr.net]
4118 * Added optionally allow for nil or empty strings with validates_numericality_of #801 [Sebastian Kanthak]
4120 * Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak]
4122 * Fixed that SQLite3 exceptions are caught and reported properly #823 [yerejm]
4124 * Added that all types of after_find/after_initialized callbacks are triggered if the explicit implementation is present, not only the explicit implementation itself
4126 * Fixed that symbols can be used on attribute assignment, like page.emails.create(:subject => data.subject, :body => data.body)
4129 *1.8.0* (7th March, 2005)
4131 * Added ActiveRecord::Base.colorize_logging to control whether to use colors in logs or not (on by default)
4133 * Added support for timestamp with time zone in PostgreSQL #560 [Scott Barron]
4135 * Added MultiparameterAssignmentErrors and AttributeAssignmentError exceptions #777 [demetrius]. Documentation:
4137    * +MultiparameterAssignmentErrors+ -- collection of errors that occurred during a mass assignment using the 
4138      +attributes=+ method. The +errors+ property of this exception contains an array of +AttributeAssignmentError+ 
4139      objects that should be inspected to determine which attributes triggered the errors.
4140    * +AttributeAssignmentError+ -- an error occurred while doing a mass assignment through the +attributes=+ method.
4141      You can inspect the +attribute+ property of the exception object to determine which attribute triggered the error.
4143 * Fixed that postgresql adapter would fails when reading bytea fields with null value #771 [rodrigo k]
4145 * Added transactional fixtures that uses rollback to undo changes to fixtures instead of DELETE/INSERT -- it's much faster. See documentation under Fixtures #760 [Jeremy Kemper]
4147 * Added destruction of dependent objects in has_one associations when a new assignment happens #742 [mindel]. Example:
4149     class Account < ActiveRecord::Base
4150       has_one :credit_card, :dependent => true
4151     end
4152     class CreditCard < ActiveRecord::Base
4153       belongs_to :account
4154     end
4156     account.credit_card # => returns existing credit card, lets say id = 12
4157     account.credit_card = CreditCard.create("number" => "123")
4158     account.save # => CC with id = 12 is destroyed
4161 * Added validates_numericality_of #716 [skanthak/c.r.mcgrath]. Docuemntation:
4163     Validates whether the value of the specified attribute is numeric by trying to convert it to
4164     a float with Kernel.Float (if <tt>integer</tt> is false) or applying it to the regular expression
4165     <tt>/^[\+\-]?\d+$/</tt> (if <tt>integer</tt> is set to true).
4166     
4167       class Person < ActiveRecord::Base
4168         validates_numericality_of :value, :on => :create
4169       end
4170     
4171     Configuration options:
4172     * <tt>message</tt> - A custom error message (default is: "is not a number")
4173     * <tt>on</tt> Specifies when this validation is active (default is :save, other options :create, :update)
4174     * <tt>only_integer</tt> Specifies whether the value has to be an integer, e.g. an integral value (default is false)
4175     
4177 * Fixed that HasManyAssociation#count was using :finder_sql rather than :counter_sql if it was available #445 [Scott Barron]
4179 * Added better defaults for composed_of, so statements like composed_of :time_zone, :mapping => %w( time_zone time_zone ) can be written without the mapping part (it's now assumed)
4181 * Added MacroReflection#macro which will return a symbol describing the macro used (like :composed_of or :has_many) #718, #248 [james@slashetc.com]
4184 *1.7.0* (24th February, 2005)
4186 * Changed the auto-timestamping feature to use ActiveRecord::Base.default_timezone instead of entertaining the parallel ActiveRecord::Base.timestamps_gmt method. The latter is now deprecated and will throw a warning on use (but still work) #710 [Jamis Buck]
4188 * Added a OCI8-based Oracle adapter that has been verified to work with Oracle 8 and 9 #629 [Graham Jenkins]. Usage notes:
4190     1.  Key generation uses a sequence "rails_sequence" for all tables. (I couldn't find a simple
4191         and safe way of passing table-specific sequence information to the adapter.)
4192     2.  Oracle uses DATE or TIMESTAMP datatypes for both dates and times. Consequently I have had to
4193         resort to some hacks to get data converted to Date or Time in Ruby.
4194         If the column_name ends in _at (like created_at, updated_at) it's created as a Ruby Time. Else if the
4195         hours/minutes/seconds are 0, I make it a Ruby Date. Else it's a Ruby Time.
4196         This is nasty - but if you use Duck Typing you'll probably not care very much.
4197         In 9i it's tempting to map DATE to Date and TIMESTAMP to Time but I don't think that is
4198         valid - too many databases use DATE for both.
4199         Timezones and sub-second precision on timestamps are not supported.
4200     3.  Default values that are functions (such as "SYSDATE") are not supported. This is a
4201         restriction of the way active record supports default values.
4202     4.  Referential integrity constraints are not fully supported. Under at least
4203         some circumstances, active record appears to delete parent and child records out of
4204         sequence and out of transaction scope. (Or this may just be a problem of test setup.)
4206   The OCI8 driver can be retrieved from http://rubyforge.org/projects/ruby-oci8/
4208 * Added option :schema_order to the PostgreSQL adapter to support the use of multiple schemas per database #697 [YuriSchimke]
4210 * Optimized the SQL used to generate has_and_belongs_to_many queries by listing the join table first #693 [yerejm]
4212 * Fixed that when using validation macros with a custom message, if you happened to use single quotes in the message string you would get a parsing error #657 [tonka]
4214 * Fixed that Active Record would throw Broken Pipe errors with FCGI when the MySQL connection timed out instead of reconnecting #428 [Nicholas Seckar]
4216 * Added options to specify an SSL connection for MySQL. Define the following attributes in the connection config (config/database.yml in Rails) to use it: sslkey, sslcert, sslca, sslcapath, sslcipher. To use SSL with no client certs, just set :sslca = '/dev/null'. http://dev.mysql.com/doc/mysql/en/secure-connections.html #604 [daniel@nightrunner.com]
4218 * Added automatic dropping/creating of test tables for running the unit tests on all databases #587 [adelle@bullet.net.au]
4220 * Fixed that find_by_* would fail when column names had numbers #670 [demetrius]
4222 * Fixed the SQL Server adapter on a bunch of issues #667 [DeLynn]
4224     1. Created a new columns method that is much cleaner. 
4225     2. Corrected a problem with the select and select_all methods 
4226        that didn't account for the LIMIT clause being passed into raw SQL statements. 
4227     3. Implemented the string_to_time method in order to create proper instances of the time class. 
4228     4. Added logic to the simplified_type method that allows the database to specify the scale of float data. 
4229     5. Adjusted the quote_column_name to account for the fact that MS SQL is bothered by a forward slash in the data string.
4231 * Fixed that the dynamic finder like find_all_by_something_boolean(false) didn't work #649 [lmarlow@yahoo.com]
4233 * Added validates_each that validates each specified attribute against a block #610 [Jeremy Kemper]. Example:
4234     
4235     class Person < ActiveRecord::Base
4236       validates_each :first_name, :last_name do |record, attr|
4237         record.errors.add attr, 'starts with z.' if attr[0] == ?z
4238       end
4239     end
4241 * Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [Jeremy Kemper]
4243 * Added that validates_* now accept blocks to perform validations #618 [Tim Bates]. Example:
4245     class Person < ActiveRecord::Base
4246       validate { |person| person.errors.add("title", "will never be valid") if SHOULD_NEVER_BE_VALID }
4247     end
4249 * Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates]
4251 * Added keyword-style approach to defining the custom relational bindings #545 [Jamis Buck]. Example:
4253     class Project < ActiveRecord::Base
4254       primary_key "sysid"
4255       table_name "XYZ_PROJECT"
4256       inheritance_column { original_inheritance_column + "_id" }
4257     end
4259 * Fixed Base#clone for use with PostgreSQL #565 [hanson@surgery.wisc.edu]
4262 *1.6.0* (January 25th, 2005)
4264 * Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once.
4266 * Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336
4268 * Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once.
4270 * Added the option of supplying an array of ids and attributes to Base#update, so that multiple records can be updated at once (inspired by #526/Duane Johnson). Example
4272     people = { 1 => { "first_name" => "David" }, 2 => { "first_name" => "Jeremy"} }
4273     Person.update(people.keys, people.values)
4275 * Added ActiveRecord::Base.timestamps_gmt that can be set to true to make the automated timestamping use GMT instead of local time #520 [Scott Baron]
4277 * Added that update_all calls sanitize_sql on its updates argument, so stuff like MyRecord.update_all(['time = ?', Time.now]) works #519 [notahat]
4279 * Fixed that the dynamic finders didn't treat nil as a "IS NULL" but rather "= NULL" case #515 [Demetrius]
4281 * Added bind-named arrays for interpolating a group of ids or strings in conditions #528 [Jeremy Kemper]
4283 * Added that has_and_belongs_to_many associations with additional attributes also can be created between unsaved objects and only committed to the database when Base#save is called on the associator #524 [Eric Anderson]
4285 * Fixed that records fetched with piggy-back attributes or through rich has_and_belongs_to_many associations couldn't be saved due to the extra attributes not part of the table #522 [Eric Anderson]
4287 * Added mass-assignment protection for the inheritance column -- regardless of a custom column is used or not
4289 * Fixed that association proxies would fail === tests like PremiumSubscription === @account.subscription
4291 * Fixed that column aliases didn't work as expected with the new MySql411 driver #507 [Demetrius]
4293 * Fixed that find_all would produce invalid sql when called sequentialy #490 [Scott Baron]
4296 *1.5.1* (January 18th, 2005)
4298 * Fixed that the belongs_to and has_one proxy would fail a test like 'if project.manager' -- this unfortunately also means that you can't call methods like project.manager.build unless there already is a manager on the project #492 [Tim Bates]
4300 * Fixed that the Ruby/MySQL adapter wouldn't connect if the password was empty #503 [Pelle]
4303 *1.5.0* (January 17th, 2005)
4305 * Fixed that unit tests for MySQL are now run as the "rails" user instead of root #455 [Eric Hodel]
4307 * Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]. Example:
4309     class Book < ActiveRecord::Base
4310       has_many :pages
4311       belongs_to :library
4312     
4313       validates_associated :pages, :library
4314     end
4315     
4316 * Added support for associating unsaved objects #402 [Tim Bates]. Rules that govern this addition:
4318     == Unsaved objects and associations
4319     
4320     You can manipulate objects and associations before they are saved to the database, but there is some special behaviour you should be
4321     aware of, mostly involving the saving of associated objects.
4322     
4323     === One-to-one associations
4324     
4325     * Assigning an object to a has_one association automatically saves that object, and the object being replaced (if there is one), in
4326       order to update their primary keys - except if the parent object is unsaved (new_record? == true).
4327     * If either of these saves fail (due to one of the objects being invalid) the assignment statement returns false and the assignment
4328       is cancelled.
4329     * If you wish to assign an object to a has_one association without saving it, use the #association.build method (documented below).
4330     * Assigning an object to a belongs_to association does not save the object, since the foreign key field belongs on the parent. It does
4331       not save the parent either.
4332     
4333     === Collections
4334     
4335     * Adding an object to a collection (has_many or has_and_belongs_to_many) automatically saves that object, except if the parent object
4336       (the owner of the collection) is not yet stored in the database.
4337     * If saving any of the objects being added to a collection (via #push or similar) fails, then #push returns false.
4338     * You can add an object to a collection without automatically saving it by using the #collection.build method (documented below).
4339     * All unsaved (new_record? == true) members of the collection are automatically saved when the parent is saved.
4341 * Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
4343 * Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
4345 * Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]
4347 * Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
4349 * Fixed binary support for PostgreSQL #444 [alex@byzantine.no]
4351 * Added a differenciation between AssociationCollection#size and -length. Now AssociationCollection#size returns the size of the 
4352   collection by executing a SELECT COUNT(*) query if the collection hasn't been loaded and calling collection.size if it has. If 
4353   it's more likely than not that the collection does have a size larger than zero and you need to fetch that collection afterwards, 
4354   it'll take one less SELECT query if you use length.
4356 * Added Base#attributes that returns a hash of all the attributes with their names as keys and clones of their objects as values #433 [atyp.de]
4358 * Fixed that foreign keys named the same as the association would cause stack overflow #437 [Eric Anderson]
4360 * Fixed default scope of acts_as_list from "1" to "1 = 1", so it'll work in PostgreSQL (among other places) #427 [Alexey]
4362 * Added Base#reload that reloads the attributes of an object from the database #422 [Andreas Schwarz]
4364 * Added SQLite3 compatibility through the sqlite3-ruby adapter by Jamis Buck #381 [Jeremy Kemper]
4366 * Added support for the new protocol spoken by MySQL 4.1.1+ servers for the Ruby/MySQL adapter that ships with Rails #440 [Matt Mower] 
4368 * Added that Observers can use the observes class method instead of overwriting self.observed_class().
4370     Before:
4371       class ListSweeper < ActiveRecord::Base
4372         def self.observed_class() [ List, Item ]
4373       end
4374     
4375     After:
4376       class ListSweeper < ActiveRecord::Base
4377         observes List, Item
4378       end
4380 * Fixed that conditions in has_many and has_and_belongs_to_many should be interpolated just like the finder_sql is
4382 * Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
4384 * Added Base#toggle(attribute) and Base#toggle!(attribute) that makes it easier to flip a switch or flag.
4386     Before: topic.update_attribute(:approved, !approved?)
4387     After : topic.toggle!(:approved)
4389 * Added Base#increment!(attribute) and Base#decrement!(attribute) that also saves the records. Example:
4391     page.views # => 1
4392     page.increment!(:views) # executes an UPDATE statement
4393     page.views # => 2
4394     
4395     page.increment(:views).increment!(:views)
4396     page.views # => 4
4398 * Added Base#increment(attribute) and Base#decrement(attribute) that encapsulates the += 1 and -= 1 patterns.
4401 *1.4.0* (January 4th, 2005)
4403 * Added automated optimistic locking if the field <tt>lock_version</tt> is present.  Each update to the
4404   record increments the lock_version column and the locking facilities ensure that records instantiated twice
4405   will let the last one saved raise a StaleObjectError if the first was also updated. Example:
4406   
4407     p1 = Person.find(1)
4408     p2 = Person.find(1)
4409     
4410     p1.first_name = "Michael"
4411     p1.save
4412     
4413     p2.first_name = "should fail"
4414     p2.save # Raises a ActiveRecord::StaleObjectError
4415   
4416   You're then responsible for dealing with the conflict by rescuing the exception and either rolling back, merging,
4417   or otherwise apply the business logic needed to resolve the conflict.
4419   #384 [Michael Koziarski]
4421 * Added dynamic attribute-based finders as a cleaner way of getting objects by simple queries without turning to SQL. 
4422   They work by appending the name of an attribute to <tt>find_by_</tt>, so you get finders like <tt>Person.find_by_user_name,
4423   Payment.find_by_transaction_id</tt>. So instead of writing <tt>Person.find_first(["user_name = ?", user_name])</tt>, you just do
4424   <tt>Person.find_by_user_name(user_name)</tt>.
4425   
4426   It's also possible to use multiple attributes in the same find by separating them with "_and_", so you get finders like
4427   <tt>Person.find_by_user_name_and_password</tt> or even <tt>Payment.find_by_purchaser_and_state_and_country</tt>. So instead of writing
4428   <tt>Person.find_first(["user_name = ? AND password = ?", user_name, password])</tt>, you just do 
4429   <tt>Person.find_by_user_name_and_password(user_name, password)</tt>.
4431   While primarily a construct for easier find_firsts, it can also be used as a construct for find_all by using calls like 
4432   <tt>Payment.find_all_by_amount(50)</tt> that is turned into <tt>Payment.find_all(["amount = ?", 50])</tt>. This is something not as equally useful,
4433   though, as it's not possible to specify the order in which the objects are returned.
4435 * Added block-style for callbacks #332 [Jeremy Kemper].
4437     Before:
4438       before_destroy(Proc.new{ |record| Person.destroy_all "firm_id = #{record.id}" })
4439     
4440     After:
4441       before_destroy { |record| Person.destroy_all "firm_id = #{record.id}" }
4443 * Added :counter_cache option to acts_as_tree that works just like the one you can define on belongs_to #371 [Josh]
4445 * Added Base.default_timezone accessor that determines whether to use Time.local (using :local) or Time.utc (using :utc) when pulling dates 
4446   and times from the database. This is set to :local by default.
4448 * Added the possibility for adapters to overwrite add_limit! to implement a different limiting scheme than "LIMIT X" used by MySQL, PostgreSQL, and SQLite.
4450 * Added the possibility of having objects with acts_as_list created before their scope is available or...
4452 * Added a db2 adapter that only depends on the Ruby/DB2 bindings (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt]
4454 * Added the final touches to the Microsoft SQL Server adapter by Joey Gibson that makes it suitable for actual use #394 [DeLynn Barry]
4456 * Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [Jeremy Kemper]
4458 * Added HasManyAssociation#count that works like Base#count #413 [intinig]
4460 * Fixed handling of binary content in blobs and similar fields for Ruby/MySQL and SQLite #409 [xal]
4462 * Fixed a bug in the Ruby/MySQL that caused binary content to be escaped badly and come back mangled #405 [Tobias Luetke]
4464 * Fixed that the const_missing autoload assumes the requested constant is set by require_association and calls const_get to retrieve it. 
4465   If require_association did not set the constant then const_get will call const_missing, resulting in an infinite loop #380 [Jeremy Kemper]
4467 * Fixed broken transactions that were actually only running object-level and not db level transactions [andreas]
4469 * Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406
4471 * Fixed that the overwritten respond_to? method didn't take two parameters like the original #391
4473 * Fixed quoting in validates_format_of that would allow some rules to pass regardless of input #390 [Dmitry V. Sabanin]
4476 *1.3.0* (December 23, 2004)
4478 * Added a require_association hook on const_missing that makes it possible to use any model class without requiring it first. This makes STI look like:
4480     before:
4481       require_association 'person'
4482       class Employee < Person
4483       end
4484     
4485     after:
4486       class Employee < Person
4487       end
4489   This also reduces the usefulness of Controller.model in Action Pack to currently only being for documentation purposes.      
4491 * Added that Base.update_all and Base.delete_all return an integer of the number of affected rows #341
4493 * Added scope option to validation_uniqueness #349 [Kent Sibilev]
4495 * Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type.
4496   This is helpful for getting "100,000" back on a integer-based validation where the value would normally be "100".
4498 * Added allow_nil options to validates_inclusion_of so that validation is only triggered if the attribute is not nil [what-a-day]
4500 * Added work-around for PostgreSQL and the problem of getting fixtures to be created from id 1 on each test case.
4501   This only works for auto-incrementing primary keys called "id" for now #359 [Scott Baron]
4503 * Added Base#clear_association_cache to empty all the cached associations #347 [Tobias Luetke]
4505 * Added more informative exceptions in establish_connection #356 [Jeremy Kemper]
4507 * Added Base#update_attributes that'll accept a hash of attributes and save the record (returning true if it passed validation, false otherwise). 
4509     Before:
4510       person.attributes = @params["person"]
4511       person.save
4512     
4513     Now:
4514       person.update_attributes(@params["person"])
4516 * Added Base.destroy and Base.delete to remove records without holding a reference to them first.
4518 * Added that query benchmarking will only happen if its going to be logged anyway #344
4520 * Added higher_item and lower_item as public methods for acts_as_list #342 [Tobias Luetke]
4522 * Fixed that options[:counter_sql] was overwritten with interpolated sql rather than original sql #355 [Jeremy Kemper]
4524 * Fixed that overriding an attribute's accessor would be disregarded by add_on_empty and add_on_boundary_breaking because they simply used 
4525   the attributes[] hash instead of checking for @base.respond_to?(attr.to_s). [Marten]
4527 * Fixed that Base.table_name would expect a parameter when used in has_and_belongs_to_many joins [Anna Lissa Cruz]
4529 * Fixed that nested transactions now work by letting the outer most transaction have the responsibilty of starting and rolling back the transaction.
4530   If any of the inner transactions swallow the exception raised, though, the transaction will not be rolled back. So always let the transaction
4531   bubble up even when you've dealt with local issues. Closes #231 and #340.
4533 * Fixed validates_{confirmation,acceptance}_of to only happen when the virtual attributes are not nil #348 [dpiddy@gmail.com]
4535 * Changed the interface on AbstractAdapter to require that adapters return the number of affected rows on delete and update operations.
4537 * Fixed the automated timestamping feature when running under Rails' development environment that resets the inheritable attributes on each request.
4541 *1.2.0*
4543 * Added Base.validates_inclusion_of that validates whether the value of the specified attribute is available in a particular enumerable
4544   object. [what-a-day]
4546     class Person < ActiveRecord::Base
4547       validates_inclusion_of :gender, :in=>%w( m f ), :message=>"woah! what are you then!??!!"
4548       validates_inclusion_of :age, :in=>0..99
4549     end
4551 * Added acts_as_list that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom. [Tobias Luetke] Example:
4553     class TodoItem < ActiveRecord::Base
4554       acts_as_list :scope => :todo_list_id
4555       belongs_to :todo_list
4556     end
4558 * Added acts_as_tree that can decorates an existing class with a many to many relationship with itself. Perfect for categories in 
4559   categories and the likes. [Tobias Luetke]
4561 * Added that Active Records will automatically record creation and/or update timestamps of database objects if fields of the names 
4562   created_at/created_on or updated_at/updated_on are present. [Tobias Luetke]
4564 * Added Base.default_error_messages as a hash of all the error messages used in the validates_*_of so they can be changed in one place [Tobias Luetke]
4566 * Added automatic transaction block around AssociationCollection.<<, AssociationCollection.delete, and AssociationCollection.destroy_all
4568 * Fixed that Base#find will return an array if given an array -- regardless of the number of elements #270 [Marten]
4570 * Fixed that has_and_belongs_to_many would generate bad sql when naming conventions differed from using vanilla "id" everywhere [RedTerror]
4572 * Added a better exception for when a type column is used in a table without the intention of triggering single-table inheritance. Example:
4574     ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'bad_class!'.
4575     This error is raised because the column 'type' is reserved for storing the class in case of inheritance. 
4576     Please rename this column if you didn't intend it to be used for storing the inheritance class or 
4577     overwrite Company.inheritance_column to use another column for that information.
4579 * Added that single-table inheritance will only kick in if the inheritance_column (by default "type") is present. Otherwise, inheritance won't
4580   have any magic side effects.
4582 * Added the possibility of marking fields as being in error without adding a message (using nil) to it that'll get displayed wth full_messages #208 [mjobin] 
4584 * Fixed Base.errors to be indifferent as to whether strings or symbols are used. Examples:
4586     Before:
4587       errors.add(:name, "must be shorter") if name.size > 10
4588       errors.on(:name)  # => "must be shorter"
4589       errors.on("name") # => nil
4591     After:
4592       errors.add(:name, "must be shorter") if name.size > 10
4593       errors.on(:name)  # => "must be shorter"
4594       errors.on("name") # => "must be shorter"
4596 * Added Base.validates_format_of that Validates whether the value of the specified attribute is of the correct form by matching 
4597   it against the regular expression provided. [Marcel]
4599     class Person < ActiveRecord::Base
4600       validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/, :on => :create
4601     end
4603 * Added Base.validates_length_of that delegates to add_on_boundary_breaking #312 [Tobias Luetke]. Example:
4605     Validates that the specified attribute matches the length restrictions supplied in either:
4606     
4607       - configuration[:minimum]
4608       - configuration[:maximum]
4609       - configuration[:is]
4610       - configuration[:within] (aka. configuration[:in])
4611     
4612     Only one option can be used at a time.
4613     
4614       class Person < ActiveRecord::Base
4615         validates_length_of :first_name, :maximum=>30
4616         validates_length_of :last_name, :maximum=>30, :message=>"less than %d if you don't mind"
4617         validates_length_of :user_name, :within => 6..20, :too_long => "pick a shorter name", :too_short => "pick a longer name"
4618         validates_length_of :fav_bra_size, :minimum=>1, :too_short=>"please enter at least %d character"
4619         validates_length_of :smurf_leader, :is=>4, :message=>"papa is spelled with %d characters... don't play me."
4620       end
4621     
4622 * Added Base.validate_presence as an alternative to implementing validate and doing errors.add_on_empty yourself.
4624 * Added Base.validates_uniqueness_of that alidates whether the value of the specified attributes are unique across the system. 
4625   Useful for making sure that only one user can be named "davidhh".
4626   
4627     class Person < ActiveRecord::Base
4628       validates_uniqueness_of :user_name
4629     end
4630   
4631   When the record is created, a check is performed to make sure that no record exist in the database with the given value for the specified
4632   attribute (that maps to a column). When the record is updated, the same check is made but disregarding the record itself.
4635 * Added Base.validates_confirmation_of that encapsulates the pattern of wanting to validate a password or email address field with a confirmation. Example:
4637      Model:
4638        class Person < ActiveRecord::Base
4639          validates_confirmation_of :password
4640        end
4641   
4642      View:
4643        <%= password_field "person", "password" %>
4644        <%= password_field "person", "password_confirmation" %>
4645   
4646    The person has to already have a password attribute (a column in the people table), but the password_confirmation is virtual.
4647    It exists only as an in-memory variable for validating the password. This check is performed both on create and update.
4650 * Added Base.validates_acceptance_of that encapsulates the pattern of wanting to validate the acceptance of a terms of service check box (or similar agreement). Example:
4651   
4652    class Person < ActiveRecord::Base
4653      validates_acceptance_of :terms_of_service
4654    end
4655   
4656   The terms_of_service attribute is entirely virtual. No database column is needed. This check is performed both on create and update.
4658   NOTE: The agreement is considered valid if it's set to the string "1". This makes it easy to relate it to an HTML checkbox.
4660   
4661 * Added validation macros to make the stackable just like the lifecycle callbacks. Examples:
4663     class Person < ActiveRecord::Base
4664       validate { |record| record.errors.add("name", "too short") unless name.size > 10 }
4665       validate { |record| record.errors.add("name", "too long")  unless name.size < 20 }
4666       validate_on_create :validate_password
4667       
4668       private
4669         def validate_password
4670           errors.add("password", "too short") unless password.size > 6
4671         end
4672     end
4674 * Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]. Examples:
4676     Project.find_all ["category = ?", category_name], "created ASC", ["? OFFSET ?", 15, 20]
4677     Post.find_by_sql ["SELECT * FROM posts WHERE author = ? AND created > ?", author_id, start_date]
4679 * Fixed value quoting in all generated SQL statements, so that integers are not surrounded in quotes and that all sanitation are happening
4680   through the database's own quoting routine. This should hopefully make it lots easier for new adapters that doesn't accept '1' for integer
4681   columns.
4683 * Fixed has_and_belongs_to_many guessing of foreign key so that keys are generated correctly for models like SomeVerySpecialClient 
4684   [Florian Weber]
4686 * Added counter_sql option for has_many associations [Jeremy Kemper]. Documentation:
4688     <tt>:counter_sql</tt> - specify a complete SQL statement to fetch the size of the association. If +:finder_sql+ is
4689     specified but +:counter_sql+, +:counter_sql+ will be generated by replacing SELECT ... FROM with SELECT COUNT(*) FROM.
4691 * Fixed that methods wrapped in callbacks still return their original result #260 [Jeremy Kemper]
4693 * Fixed the Inflector to handle the movie/movies pair correctly #261 [Scott Baron]
4695 * Added named bind-style variable interpolation #281 [Michael Koziarski]. Example:
4697     Person.find(["id = :id and first_name = :first_name", { :id => 5, :first_name = "bob' or 1=1" }])
4699 * Added bind-style variable interpolation for the condition arrays that uses the adapter's quote method [Michael Koziarski]
4701   Before:
4702     find_first([ "user_name = '%s' AND password = '%s'", user_name, password ])]
4703     find_first([ "firm_id = %s", firm_id ])] # unsafe!
4705   After:
4706     find_first([ "user_name = ? AND password = ?", user_name, password ])]
4707     find_first([ "firm_id = ?", firm_id ])]
4709 * Added CSV format for fixtures #272 [what-a-day]. (See the new and expanded documentation on fixtures for more information)
4711 * Fixed fixtures using primary key fields called something else than "id" [dave]
4713 * Added proper handling of time fields that are turned into Time objects with the dummy date of 2000/1/1 [HariSeldon]
4715 * Added reverse order of deleting fixtures, so referential keys can be maintained #247 [Tim Bates]
4717 * Added relative path search for sqlite dbfiles in database.yml (if RAILS_ROOT is defined) #233 [Jeremy Kemper]
4719 * Added option to establish_connection where you'll be able to leave out the parameter to have it use the RAILS_ENV environment variable
4721 * Fixed problems with primary keys and postgresql sequences (#230) [Tim Bates]
4723 * Added reloading for associations under cached environments like FastCGI and mod_ruby. This makes it possible to use those environments for development.
4724   This is turned on by default, but can be turned off with ActiveRecord::Base.reload_dependencies = false in production environments.
4726   NOTE: This will only have an effect if you let the associations manage the requiring of model classes. All libraries loaded through
4727   require will be "forever" cached. You can, however, use ActiveRecord::Base.load_or_require("library") to get this behavior outside of the
4728   auto-loading associations.
4730 * Added ERB capabilities to the fixture files for dynamic fixture generation. You don't need to do anything, just include ERB blocks like:
4732     david:
4733       id: 1
4734       name: David
4736     jamis:
4737       id: 2
4738       name: Jamis
4740     <% for digit in 3..10 %>
4741     dev_<%= digit %>:
4742       id: <%= digit %>
4743       name: fixture_<%= digit %>
4744     <% end %>
4746 * Changed the yaml fixture searcher to look in the root of the fixtures directory, so when you before could have something like:
4748     fixtures/developers/fixtures.yaml
4749     fixtures/accounts/fixtures.yaml
4750   
4751   ...you now need to do:
4752   
4753     fixtures/developers.yaml
4754     fixtures/accounts.yaml
4756 * Changed the fixture format from:
4758     name: david
4759     data:
4760      id: 1
4761      name: David Heinemeier Hansson
4762      birthday: 1979-10-15
4763      profession: Systems development
4764     ---
4765     name: steve
4766     data:
4767      id: 2
4768      name: Steve Ross Kellock
4769      birthday: 1974-09-27
4770      profession: guy with keyboard
4772   ...to:
4774     david:
4775      id: 1
4776      name: David Heinemeier Hansson
4777      birthday: 1979-10-15
4778      profession: Systems development
4779     
4780     steve:
4781      id: 2
4782      name: Steve Ross Kellock
4783      birthday: 1974-09-27
4784      profession: guy with keyboard
4785     
4786   The change is NOT backwards compatible. Fixtures written in the old YAML style needs to be rewritten!
4788 * All associations will now attempt to require the classes that they associate to. Relieving the need for most explicit 'require' statements.
4791 *1.1.0* (34)
4793 * Added automatic fixture setup and instance variable availability. Fixtures can also be automatically 
4794   instantiated in instance variables relating to their names using the following style:
4796     class FixturesTest < Test::Unit::TestCase
4797       fixtures :developers # you can add more with comma separation
4799       def test_developers
4800         assert_equal 3, @developers.size # the container for all the fixtures is automatically set
4801         assert_kind_of Developer, @david # works like @developers["david"].find
4802         assert_equal "David Heinemeier Hansson", @david.name
4803       end
4804     end
4806 * Added HasAndBelongsToManyAssociation#push_with_attributes(object, join_attributes) that can create associations in the join table with additional
4807   attributes. This is really useful when you have information that's only relevant to the join itself, such as a "added_on" column for an association
4808   between post and category. The added attributes will automatically be injected into objects retrieved through the association similar to the piggy-back
4809   approach:
4810   
4811     post.categories.push_with_attributes(category, :added_on => Date.today)
4812     post.categories.first.added_on # => Date.today
4813     
4814   NOTE: The categories table doesn't have a added_on column, it's the categories_post join table that does!
4816 * Fixed that :exclusively_dependent and :dependent can't be activated at the same time on has_many associations [Jeremy Kemper]
4818 * Fixed that database passwords couldn't be all numeric [Jeremy Kemper]
4820 * Fixed that calling id would create the instance variable for new_records preventing them from being saved correctly [Jeremy Kemper]
4822 * Added sanitization feature to HasManyAssociation#find_all so it works just like Base.find_all [Sam Stephenson/bitsweat]
4824 * Added that you can pass overlapping ids to find without getting duplicated records back [Jeremy Kemper]
4826 * Added that Base.benchmark returns the result of the block [Jeremy Kemper]
4828 * Fixed problem with unit tests on Windows with SQLite [paterno]
4830 * Fixed that quotes would break regular non-yaml fixtures [Dmitry Sabanin/daft]
4832 * Fixed fixtures on windows with line endings cause problems under unix / mac [Tobias Luetke]
4834 * Added HasAndBelongsToManyAssociation#find(id) that'll search inside the collection and find the object or record with that id
4836 * Added :conditions option to has_and_belongs_to_many that works just like the one on all the other associations
4838 * Added AssociationCollection#clear to remove all associations from has_many and has_and_belongs_to_many associations without destroying the records [geech]
4840 * Added type-checking and remove in 1-instead-of-N sql statements to AssociationCollection#delete [geech]
4842 * Added a return of self to AssociationCollection#<< so appending can be chained, like project << Milestone.create << Milestone.create [geech]
4844 * Added Base#hash and Base#eql? which means that all of the equality using features of array and other containers now works:
4846     [ Person.find(1), Person.find(2), Person.find(3) ] & [ Person.find(1), Person.find(4) ] # => [ Person.find(1) ]
4848 * Added :uniq as an option to has_and_belongs_to_many which will automatically ensure that AssociateCollection#uniq is called
4849   before pulling records out of the association. This is especially useful for three-way (and above) has_and_belongs_to_many associations.
4851 * Added AssociateCollection#uniq which is especially useful for has_and_belongs_to_many associations that can include duplicates,
4852   which is common on associations that also use metadata. Usage: post.categories.uniq
4854 * Fixed respond_to? to use a subclass specific hash instead of an Active Record-wide one
4856 * Fixed has_and_belongs_to_many to treat associations between classes in modules properly [Florian Weber]
4858 * Added a NoMethod exception to be raised when query and writer methods are called for attributes that doesn't exist [geech]
4860 * Added a more robust version of Fixtures that throws meaningful errors when on formatting issues [geech]
4862 * Added Base#transaction as a compliment to Base.transaction for prettier use in instance methods [geech]
4864 * Improved the speed of respond_to? by placing the dynamic methods lookup table in a hash [geech]
4866 * Added that any additional fields added to the join table in a has_and_belongs_to_many association 
4867   will be placed as attributes when pulling records out through has_and_belongs_to_many associations. 
4868   This is helpful when have information about the association itself that you want available on retrival.
4870 * Added better loading exception catching and RubyGems retries to the database adapters [alexeyv]
4872 * Fixed bug with per-model transactions [daniel]
4874 * Fixed Base#transaction so that it returns the result of the last expression in the transaction block [alexeyv]
4876 * Added Fixture#find to find the record corresponding to the fixture id. The record 
4877   class name is guessed by using Inflector#classify (also new) on the fixture directory name.
4878   
4879     Before: Document.find(@documents["first"]["id"])
4880     After : @documents["first"].find
4882 * Fixed that the table name part of column names ("TABLE.COLUMN") wasn't removed properly [Andreas Schwarz]
4884 * Fixed a bug with Base#size when a finder_sql was used that didn't capitalize SELECT and FROM [geech]
4886 * Fixed quoting problems on SQLite by adding quote_string to the AbstractAdapter that can be overwritten by the concrete
4887   adapters for a call to the dbm. [Andreas Schwarz]
4888   
4889 * Removed RubyGems backup strategy for requiring SQLite-adapter -- if people want to use gems, they're already doing it with AR.
4892 *1.0.0 (35)*
4894 * Added OO-style associations methods [Florian Weber]. Examples:
4896     Project#milestones_count       => Project#milestones.size
4897     Project#build_to_milestones    => Project#milestones.build
4898     Project#create_for_milestones  => Project#milestones.create
4899     Project#find_in_milestones     => Project#milestones.find
4900     Project#find_all_in_milestones => Project#milestones.find_all
4902 * Added serialize as a new class method to control when text attributes should be YAMLized or not. This means that automated
4903   serialization of hashes, arrays, and so on WILL NO LONGER HAPPEN (#10). You need to do something like this:
4904   
4905     class User < ActiveRecord::Base
4906       serialize :settings
4907     end
4908   
4909   This will assume that settings is a text column and will now YAMLize any object put in that attribute. You can also specify
4910   an optional :class_name option that'll raise an exception if a serialized object is retrieved as a descendent of a class not in
4911   the hierarchy. Example:
4912   
4913     class User < ActiveRecord::Base
4914       serialize :settings, :class_name => "Hash"
4915     end
4916   
4917     user = User.create("settings" => %w( one two three ))
4918     User.find(user.id).settings # => raises SerializationTypeMismatch
4920 * Added the option to connect to a different database for one model at a time. Just call establish_connection on the class
4921   you want to have connected to another database than Base. This will automatically also connect decendents of that class
4922   to the different database [Renald Buter].
4924 * Added transactional protection for Base#save. Validations can now check for values knowing that it happens in a transaction and callbacks
4925   can raise exceptions knowing that the save will be rolled back. [Suggested by Alexey Verkhovsky]
4927 * Added column name quoting so reserved words, such as "references", can be used as column names [Ryan Platte]
4929 * Added the possibility to chain the return of what happened inside a logged block [geech]:
4931     This now works: 
4932       log { ... }.map { ... }
4934     Instead of doing:
4935       result = []
4936       log { result = ... }
4937       result.map { ... }
4939 * Added "socket" option for the MySQL adapter, so you can change it to something else than "/tmp/mysql.sock" [Anna Lissa Cruz]
4941 * Added respond_to? answers for all the attribute methods. So if Person has a name attribute retrieved from the table schema, 
4942   person.respond_to? "name" will return true.
4944 * Added Base.benchmark which can be used to aggregate logging and benchmark, so you can measure and represent multiple statements in a single block.
4945   Usage (hides all the SQL calls for the individual actions and calculates total runtime for them all):
4947     Project.benchmark("Creating project") do
4948       project = Project.create("name" => "stuff")
4949       project.create_manager("name" => "David")
4950       project.milestones << Milestone.find_all
4951     end
4953 * Added logging of invalid SQL statements [Suggested by Daniel Von Fange]
4955 * Added alias Errors#[] for Errors#on, so you can now say person.errors["name"] to retrieve the errors for name [Andreas Schwarz]
4957 * Added RubyGems require attempt if sqlite-ruby is not available through regular methods.
4959 * Added compatibility with 2.x series of sqlite-ruby drivers. [Jamis Buck]
4961 * Added type safety for association assignments, so a ActiveRecord::AssociationTypeMismatch will be raised if you attempt to
4962   assign an object that's not of the associated class. This cures the problem with nil giving id = 4 and fixnums giving id = 1 on 
4963   mistaken association assignments. [Reported by Andreas Schwarz]
4965 * Added the option to keep many fixtures in one single YAML document [what-a-day]
4967 * Added the class method "inheritance_column" that can be overwritten to return the name of an alternative column than "type" for storing
4968   the type for inheritance hierarchies. [Dave Steinberg]
4970 * Added [] and []= as an alternative way to access attributes when the regular methods have been overwritten [Dave Steinberg]
4972 * Added the option to observer more than one class at the time by specifying observed_class as an array
4974 * Added auto-id propagation support for tables with arbitrary primary keys that have autogenerated sequences associated with them 
4975   on PostgreSQL. [Dave Steinberg]
4977 * Changed that integer and floats set to "" through attributes= remain as NULL. This was especially a problem for scaffolding and postgresql. (#49)
4979 * Changed the MySQL Adapter to rely on MySQL for its defaults for socket, host, and port [Andreas Schwarz]
4981 * Changed ActionControllerError to decent from StandardError instead of Exception. It can now be caught by a generic rescue.
4983 * Changed class inheritable attributes to not use eval [Caio Chassot]
4985 * Changed Errors#add to now use "invalid" as the default message instead of true, which means full_messages work with those [Marcel Molina Jr]
4987 * Fixed spelling on Base#add_on_boundry_breaking to Base#add_on_boundary_breaking (old naming still works) [Marcel Molina Jr.]
4989 * Fixed that entries in the has_and_belongs_to_many join table didn't get removed when an associated object was destroyed.
4991 * Fixed unnecessary calls to SET AUTOCOMMIT=0/1 for MySQL adapter [Andreas Schwarz]
4993 * Fixed PostgreSQL defaults are now handled gracefully [Dave Steinberg]
4995 * Fixed increment/decrement_counter are now atomic updates [Andreas Schwarz]
4997 * Fixed the problems the Inflector had turning Attachment into attuchments and Cases into Casis [radsaq/Florian Gross]
4999 * Fixed that cloned records would point attribute references on the parent object [Andreas Schwarz]
5001 * Fixed SQL for type call on inheritance hierarchies [Caio Chassot]
5003 * Fixed bug with typed inheritance [Florian Weber]
5005 * Fixed a bug where has_many collection_count wouldn't use the conditions specified for that association
5008 *0.9.5*
5010 * Expanded the table_name guessing rules immensely [Florian Green]. Documentation:
5012     Guesses the table name (in forced lower-case) based on the name of the class in the inheritance hierarchy descending
5013     directly from ActiveRecord. So if the hierarchy looks like: Reply < Message < ActiveRecord, then Message is used
5014     to guess the table name from even when called on Reply. The guessing rules are as follows:
5015     * Class name ends in "x", "ch" or "ss": "es" is appended, so a Search class becomes a searches table.
5016     * Class name ends in "y" preceded by a consonant or "qu": The "y" is replaced with "ies", 
5017       so a Category class becomes a categories table. 
5018     * Class name ends in "fe": The "fe" is replaced with "ves", so a Wife class becomes a wives table.
5019     * Class name ends in "lf" or "rf": The "f" is replaced with "ves", so a Half class becomes a halves table.
5020     * Class name ends in "person": The "person" is replaced with "people", so a Salesperson class becomes a salespeople table.
5021     * Class name ends in "man": The "man" is replaced with "men", so a Spokesman class becomes a spokesmen table.
5022     * Class name ends in "sis": The "i" is replaced with an "e", so a Basis class becomes a bases table.
5023     * Class name ends in "tum" or "ium": The "um" is replaced with an "a", so a Datum class becomes a data table.
5024     * Class name ends in "child": The "child" is replaced with "children", so a NodeChild class becomes a node_children table.
5025     * Class name ends in an "s": No additional characters are added or removed.
5026     * Class name doesn't end in "s": An "s" is appended, so a Comment class becomes a comments table.
5027     * Class name with word compositions: Compositions are underscored, so CreditCard class becomes a credit_cards table.
5028     Additionally, the class-level table_name_prefix is prepended to the table_name and the table_name_suffix is appended.
5029     So if you have "myapp_" as a prefix, the table name guess for an Account class becomes "myapp_accounts".
5030     
5031     You can also overwrite this class method to allow for unguessable links, such as a Mouse class with a link to a
5032     "mice" table. Example:
5033     
5034       class Mouse < ActiveRecord::Base
5035          def self.table_name() "mice" end
5036       end
5037   
5038   This conversion is now done through an external class called Inflector residing in lib/active_record/support/inflector.rb.
5040 * Added find_all_in_collection to has_many defined collections. Works like this:
5042     class Firm < ActiveRecord::Base
5043       has_many :clients
5044     end
5045     
5046     firm.id # => 1
5047     firm.find_all_in_clients "revenue > 1000" # SELECT * FROM clients WHERE firm_id = 1 AND revenue > 1000
5049   [Requested by Dave Thomas]
5051 * Fixed finders for inheritance hierarchies deeper than one level [Florian Weber]
5053 * Added add_on_boundry_breaking to errors to accompany add_on_empty as a default validation method. It's used like this:
5055     class Person < ActiveRecord::Base
5056       protected
5057         def validation
5058           errors.add_on_boundry_breaking "password", 3..20
5059         end
5060     end
5061     
5062   This will add an error to the tune of "is too short (minimum is 3 characters)" or "is too long (minimum is 20 characters)" if
5063   the password is outside the boundry. The messages can be changed by passing a third and forth parameter as message strings.
5065 * Implemented a clone method that works properly with AR. It returns a clone of the record that 
5066   hasn't been assigned an id yet and is treated as a new record.
5068 * Allow for domain sockets in PostgreSQL by not assuming localhost when no host is specified [Scott Barron]
5070 * Fixed that bignums are saved properly instead of attempted to be YAMLized [Andreas Schwartz]
5072 * Fixed a bug in the GEM where the rdoc options weren't being passed according to spec [Chad Fowler]
5074 * Fixed a bug with the exclusively_dependent option for has_many
5077 *0.9.4*
5079 * Correctly guesses the primary key when the class is inside a module [Dave Steinberg].
5081 * Added [] and []= as alternatives to read_attribute and write_attribute [Dave Steinberg]
5083 * has_and_belongs_to_many now accepts an :order key to determine in which order the collection is returned [radsaq].
5085 * The ids passed to find and find_on_conditions are now automatically sanitized.
5087 * Added escaping of plings in YAML content.
5089 * Multi-parameter assigns where all the parameters are empty will now be set to nil instead of a new instance of their class.
5091 * Proper type within an inheritance hierarchy is now ensured already at object initialization (instead of first at create)
5094 *0.9.3*
5096 * Fixed bug with using a different primary key name together with has_and_belongs_to_many [Investigation by Scott] 
5098 * Added :exclusively_dependent option to the has_many association macro. The doc reads:
5100     If set to true all the associated object are deleted in one SQL statement without having their
5101     before_destroy callback run. This should only be used on associations that depend solely on 
5102     this class and don't need to do any clean-up in before_destroy. The upside is that it's much
5103     faster, especially if there's a counter_cache involved.
5105 * Added :port key to connection options, so the PostgreSQL and MySQL adapters can connect to a database server
5106   running on another port than the default.
5108 * Converted the new natural singleton methods that prevented AR objects from being saved by PStore
5109   (and hence be placed in a Rails session) to a module. [Florian Weber]
5111 * Fixed the use of floats (was broken since 0.9.0+)
5113 * Fixed PostgreSQL adapter so default values are displayed properly when used in conjunction with 
5114   Action Pack scaffolding.
5116 * Fixed booleans support for PostgreSQL (use real true/false on boolean fields instead of 0/1 on tinyints) [radsaq]
5119 *0.9.2*
5121 * Added static method for instantly updating a record
5123 * Treat decimal and numeric as Ruby floats [Andreas Schwartz]
5125 * Treat chars as Ruby strings (fixes problem for Action Pack form helpers too)
5127 * Removed debugging output accidently left in (which would screw web applications)
5130 *0.9.1*
5132 * Added MIT license
5134 * Added natural object-style assignment for has_and_belongs_to_many associations. Consider the following model:
5136     class Event < ActiveRecord::Base
5137       has_one_and_belongs_to_many :sponsors
5138     end
5139     
5140     class Sponsor < ActiveRecord::Base
5141       has_one_and_belongs_to_many :sponsors
5142     end
5144   Earlier, you'd have to use synthetic methods for creating associations between two objects of the above class:
5145   
5146     roskilde_festival.add_to_sponsors(carlsberg)
5147     roskilde_festival.remove_from_sponsors(carlsberg)
5149     nike.add_to_events(world_cup)
5150     nike.remove_from_events(world_cup)
5151     
5152   Now you can use regular array-styled methods:
5153   
5154     roskilde_festival.sponsors << carlsberg
5155     roskilde_festival.sponsors.delete(carlsberg)
5157     nike.events << world_cup
5158     nike.events.delete(world_cup)
5160 * Added delete method for has_many associations. Using this will nullify an association between the has_many and the belonging
5161   object by setting the foreign key to null. Consider this model:
5162   
5163     class Post < ActiveRecord::Base
5164       has_many :comments
5165     end
5167     class Comment < ActiveRecord::Base
5168       belongs_to :post
5169     end
5171   You could do something like:
5173     funny_comment.has_post? # => true
5174     announcement.comments.delete(funny_comment)
5175     funny_comment.has_post? # => false
5178 *0.9.0*
5180 * Active Record is now thread safe! (So you can use it with Cerise and WEBrick applications)
5181   [Implementation idea by Michael Neumann, debugging assistance by Jamis Buck]
5183 * Improved performance by roughly 400% on a basic test case of pulling 100 records and querying one attribute. 
5184   This brings the tax for using Active Record instead of "riding on the metal" (using MySQL-ruby C-driver directly) down to ~50%.
5185   Done by doing lazy type conversions and caching column information on the class-level.
5187 * Added callback objects and procs as options for implementing the target for callback macros.
5189 * Added "counter_cache" option to belongs_to that automates the usage of increment_counter and decrement_counter. Consider:
5191     class Post < ActiveRecord::Base
5192       has_many :comments
5193     end
5195     class Comment < ActiveRecord::Base
5196       belongs_to :post
5197     end
5199   Iterating over 100 posts like this:
5200   
5201     <% for post in @posts %>
5202       <%= post.title %> has <%= post.comments_count %> comments
5203     <% end %>
5204     
5205   Will generate 100 SQL count queries -- one for each call to post.comments_count. If you instead add a "comments_count" int column
5206   to the posts table and rewrite the comments association macro with:
5208     class Comment < ActiveRecord::Base
5209       belongs_to :post, :counter_cache => true
5210     end
5211   
5212   Those 100 SQL count queries will be reduced to zero. Beware that counter caching is only appropriate for objects that begin life
5213   with the object it's specified to belong with and is destroyed like that as well. Typically objects where you would also specify
5214   :dependent => true. If your objects switch from one belonging to another (like a post that can be move from one category to another),
5215   you'll have to manage the counter yourself. 
5217 * Added natural object-style assignment for has_one and belongs_to associations. Consider the following model:
5219     class Project < ActiveRecord::Base
5220       has_one :manager
5221     end
5222     
5223     class Manager < ActiveRecord::Base
5224       belongs_to :project
5225     end
5226   
5227   Earlier, assignments would work like following regardless of which way the assignment told the best story:
5228   
5229     active_record.manager_id = david.id
5230   
5231   Now you can do it either from the belonging side:
5233     david.project = active_record
5234   
5235   ...or from the having side:
5236   
5237     active_record.manager = david
5238   
5239   If the assignment happens from the having side, the assigned object is automatically saved. So in the example above, the 
5240   project_id attribute on david would be set to the id of active_record, then david would be saved.
5242 * Added natural object-style assignment for has_many associations [Florian Weber]. Consider the following model:
5244     class Project < ActiveRecord::Base
5245       has_many :milestones
5246     end
5247     
5248     class Milestone < ActiveRecord::Base
5249       belongs_to :project
5250     end
5251   
5252   Earlier, assignments would work like following regardless of which way the assignment told the best story:
5253   
5254     deadline.project_id = active_record.id
5255   
5256   Now you can do it either from the belonging side:
5258     deadline.project = active_record
5259   
5260   ...or from the having side:
5261   
5262     active_record.milestones << deadline
5263   
5264   The milestone is automatically saved with the new foreign key.
5266 * API CHANGE: Attributes for text (or blob or similar) columns will now have unknown classes stored using YAML instead of using
5267   to_s. (Known classes that won't be yamelized are: String, NilClass, TrueClass, FalseClass, Fixnum, Date, and Time).
5268   Likewise, data pulled out of text-based attributes will be attempted converged using Yaml if they have the "--- " header.
5269   This was primarily done to be enable the storage of hashes and arrays without wrapping them in aggregations, so now you can do:
5270   
5271     user = User.find(1)
5272     user.preferences = { "background" => "black", "display" => large }
5273     user.save
5274     
5275     User.find(1).preferences # => { "background" => "black", "display" => large }
5276   
5277   Please note that this method should only be used when you don't care about representing the object in proper columns in
5278   the database. A money object consisting of an amount and a currency is still a much better fit for a value object done through
5279   aggregations than this new option.
5281 * POSSIBLE CODE BREAKAGE: As a consequence of the lazy type conversions, it's a bad idea to reference the @attributes hash
5282   directly (it always was, but now it's paramount that you don't). If you do, you won't get the type conversion. So to implement
5283   new accessors for existing attributes, use read_attribute(attr_name) and write_attribute(attr_name, value) instead. Like this:
5284   
5285     class Song < ActiveRecord::Base
5286       # Uses an integer of seconds to hold the length of the song
5287       
5288       def length=(minutes)
5289         write_attribute("length", minutes * 60)
5290       end
5291       
5292       def length
5293         read_attribute("length") / 60
5294       end
5295     end
5297   The clever kid will notice that this opens a door to sidestep the automated type conversion by using @attributes directly.
5298   This is not recommended as read/write_attribute may be granted additional responsibilities in the future, but if you think
5299   you know what you're doing and aren't afraid of future consequences, this is an option.
5301 * Applied a few minor bug fixes reported by Daniel Von Fange.
5304 *0.8.4*
5306 _Reflection_
5308 * Added ActiveRecord::Reflection with a bunch of methods and classes for reflecting in aggregations and associations.
5310 * Added Base.columns and Base.content_columns which returns arrays of column description (type, default, etc) objects.
5312 * Added Base#attribute_names which returns an array of names for the attributes available on the object.
5314 * Added Base#column_for_attribute(name) which returns the column description object for the named attribute.
5317 _Misc_
5319 * Added multi-parameter assignment:
5321     # Instantiate objects for all attribute classes that needs more than one constructor parameter. This is done
5322     # by calling new on the column type or aggregation type (through composed_of) object with these parameters.
5323     # So having the pairs written_on(1) = "2004", written_on(2) = "6", written_on(3) = "24", will instantiate
5324     # written_on (a date type) with Date.new("2004", "6", "24"). You can also specify a typecast character in the
5325     # parenteses to have the parameters typecasted before they're used in the constructor. Use i for Fixnum, f for Float,
5326     # s for String, and a for Array.
5327   
5328   This is incredibly useful for assigning dates from HTML drop-downs of month, year, and day.
5330 * Fixed bug with custom primary key column name and Base.find on multiple parameters.
5332 * Fixed bug with dependent option on has_one associations if there was no associated object.
5335 *0.8.3*
5337 _Transactions_
5339 * Added transactional protection for destroy (important for the new :dependent option) [Suggested by Carl Youngblood]
5341 * Fixed so transactions are ignored on MyISAM tables for MySQL (use InnoDB to get transactions)
5343 * Changed transactions so only exceptions will cause a rollback, not returned false.
5346 _Mapping_
5348 * Added support for non-integer primary keys [Aredridel/earlier work by Michael Neumann]
5349   
5350     User.find "jdoe"
5351     Product.find "PDKEY-INT-12"
5353 * Added option to specify naming method for primary key column. ActiveRecord::Base.primary_key_prefix_type can either
5354   be set to nil, :table_name, or :table_name_with_underscore. :table_name will assume that Product class has a primary key
5355   of "productid" and :table_name_with_underscore will assume "product_id". The default nil will just give "id".
5356     
5357 * Added an overwriteable primary_key method that'll instruct AR to the name of the 
5358   id column [Aredridele/earlier work by Guan Yang]
5359     
5360     class Project < ActiveRecord::Base
5361       def self.primary_key() "project_id" end
5362     end
5364 * Fixed that Active Records can safely associate inside and out of modules.
5366     class MyApplication::Account < ActiveRecord::Base
5367       has_many :clients # will look for MyApplication::Client
5368       has_many :interests, :class_name => "Business::Interest" # will look for Business::Interest
5369     end
5371 * Fixed that Active Records can safely live inside modules [Aredridel]
5373     class MyApplication::Account < ActiveRecord::Base
5374     end
5377 _Misc_
5379 * Added freeze call to value object assignments to ensure they remain immutable [Spotted by Gavin Sinclair]
5381 * Changed interface for specifying observed class in observers. Was OBSERVED_CLASS constant, now is 
5382   observed_class() class method. This is more consistant with things like self.table_name(). Works like this:
5384     class AuditObserver < ActiveRecord::Observer
5385       def self.observed_class() Account end
5386       def after_update(account)
5387         AuditTrail.new(account, "UPDATED")
5388       end
5389     end
5391   [Suggested by Gavin Sinclair]
5393 * Create new Active Record objects by setting the attributes through a block. Like this:
5395     person = Person.new do |p|
5396       p.name = 'Freddy'
5397       p.age  = 19
5398     end
5400   [Suggested by Gavin Sinclair]
5403 *0.8.2*
5405 * Added inheritable callback queues that can ensure that certain callback methods or inline fragments are
5406   run throughout the entire inheritance hierarchy. Regardless of whether a descendent overwrites the callback
5407   method:
5408   
5409     class Topic < ActiveRecord::Base
5410       before_destroy :destroy_author, 'puts "I'm an inline fragment"'
5411     end
5412   
5413   Learn more in link:classes/ActiveRecord/Callbacks.html
5415 * Added :dependent option to has_many and has_one, which will automatically destroy associated objects when 
5416   the holder is destroyed:
5417   
5418     class Album < ActiveRecord::Base
5419       has_many :tracks, :dependent => true
5420     end
5421     
5422   All the associated tracks are destroyed when the album is.
5424 * Added Base.create as a factory that'll create, save, and return a new object in one step.
5426 * Automatically convert strings in config hashes to symbols for the _connection methods. This allows you
5427   to pass the argument hashes directly from yaml. (Luke)
5429 * Fixed the install.rb to include simple.rb [Spotted by Kevin Bullock]
5431 * Modified block syntax to better follow our code standards outlined in 
5432   http://www.rubyonrails.org/CodingStandards
5435 *0.8.1*
5437 * Added object-level transactions [Thanks to Austin Ziegler for Transaction::Simple]
5439 * Changed adapter-specific connection methods to use centralized ActiveRecord::Base.establish_connection,
5440   which is parametized through a config hash with symbol keys instead of a regular parameter list.
5441   This will allow for database connections to be opened in a more generic fashion. (Luke)
5442   
5443   NOTE: This requires all *_connections to be updated! Read more in:
5444   http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000081
5446 * Fixed SQLite adapter so objects fetched from has_and_belongs_to_many have proper attributes
5447   (t.name is now name). [Spotted by Garrett Rooney]
5449 * Fixed SQLite adapter so dates are returned as Date objects, not Time objects [Spotted by Gavin Sinclair]
5451 * Fixed requirement of date class, so date conversions are succesful regardless of whether you 
5452   manually require date or not.
5455 *0.8.0*
5457 * Added transactions
5459 * Changed Base.find to also accept either a list (1, 5, 6) or an array of ids ([5, 7]) 
5460   as parameter and then return an array of objects instead of just an object
5462 * Fixed method has_collection? for has_and_belongs_to_many macro to behave as a 
5463   collection, not an association
5465 * Fixed SQLite adapter so empty or nil values in columns of datetime, date, or time type
5466   aren't treated as current time [Spotted by Gavin Sinclair]
5469 *0.7.6*
5471 * Fixed the install.rb to create the lib/active_record/support directory [Spotted by Gavin Sinclair]
5472 * Fixed that has_association? would always return true [Spotted by Daniel Von Fange]