Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add interpolation of association conditions back in, in the form of proc { ↵ | Jon Leighton | 2011-02-14 | 1 | -2/+21 |
| | | | | ... } rather than instance_eval-ing strings | ||||
* | Support the :dependent option on has_many :through associations. For ↵ | Jon Leighton | 2011-02-07 | 1 | -0/+8 |
| | | | | historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association. | ||||
* | Make record.association.destroy(*records) on habtm and hm:t only delete ↵ | Jon Leighton | 2011-02-07 | 1 | -0/+19 |
| | | | | records in the join table. This is to make the destroy method more consistent across the different types of associations. For more details see the CHANGELOG entry. | ||||
* | Add :bulk => true option to change_table | Pratik Naik | 2011-01-31 | 1 | -0/+13 |
| | |||||
* | Add CHANGELOG entry for the addition of create_association! methods on ↵ | Jon Leighton | 2011-01-16 | 1 | -0/+2 |
| | | | | has_one and belongs_to | ||||
* | Removed support for accessing attributes on a has_and_belongs_to_many join ↵ | Jon Leighton | 2011-01-16 | 1 | -1/+5 |
| | | | | table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. A deprecation warning will be added to the 3-0-stable branch for the 3.0.4 release. | ||||
* | updates AR's CHANGELOG with changes in 9e64dfa and ad343d7 | Xavier Noria | 2011-01-16 | 1 | -0/+4 |
| | |||||
* | Aligning master changelog w/ 3-0-stable | Kevin Moore | 2011-01-09 | 1 | -1/+9 |
| | |||||
* | removing SQL interpolation, please use scoping and attribute conditionals as ↵ | Aaron Patterson | 2010-12-22 | 1 | -0/+3 |
| | | | | a replacement | ||||
* | Remove weak_passwords list and the length/strong password validator, leave ↵ | Santiago Pastorino | 2010-12-19 | 1 | -5/+5 |
| | | | | that up to the programmer | ||||
* | Switch from SHA2 to BCrypt (easy Windows compatibility is coming shortly ↵ | David Heinemeier Hansson | 2010-12-18 | 1 | -1/+1 |
| | | | | with new compiled gem) | ||||
* | Added ActiveRecord::Base#has_secure_password (via ↵ | David Heinemeier Hansson | 2010-12-18 | 1 | -0/+19 |
| | | | | ActiveModel::SecurePassword) to encapsulate dead-simple password usage with SHA2 encryption and salting | ||||
* | Generate add_index by default when giving type belongs_to or references | Santiago Pastorino | 2010-12-16 | 1 | -0/+22 |
| | |||||
* | updating CHANGELOG | Aaron Patterson | 2010-12-08 | 1 | -0/+3 |
| | |||||
* | rolling out migrated_at until I can fix the build | Aaron Patterson | 2010-12-01 | 1 | -4/+0 |
| | |||||
* | updating CHANGELOG | Aaron Patterson | 2010-12-01 | 1 | -0/+4 |
| | |||||
* | updating changelog for dup and clone semantics | Aaron Patterson | 2010-11-23 | 1 | -0/+11 |
| | |||||
* | wtf vim | Aaron Patterson | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | adding Migration#change to the CHANGELOG | Aaron Patterson | 2010-11-19 | 1 | -0/+18 |
| | |||||
* | updating CHANGELOG | Aaron Patterson | 2010-11-17 | 1 | -0/+9 |
| | |||||
* | syncs CHANGELOGs for 3.0.2 in 3-0-stable with the ones in master | Xavier Noria | 2010-11-09 | 1 | -0/+29 |
| | |||||
* | has_one maintains the association with separate after_create/after_update | Xavier Noria | 2010-10-22 | 1 | -0/+3 |
| | | | | | This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job. | ||||
* | Merge CHANGELOGs from 3-0-stable | Santiago Pastorino | 2010-10-18 | 1 | -0/+4 |
| | |||||
* | removing nonsensical tests, limit now actually adds a limit | Aaron Patterson | 2010-09-15 | 1 | -1/+13 |
| | |||||
* | Update CHANGELOGs for 3.0 release and upcoming 3.1 | Jeremy Kemper | 2010-08-29 | 1 | -16/+2 |
| | |||||
* | Clean up CHANGELOGs | Jeremy Kemper | 2010-08-28 | 1 | -0/+10 |
| | |||||
* | change 'a SQL' to 'an SQL' as suggested by the api documentation guidelines | Jaime Iniesta | 2010-08-26 | 1 | -2/+2 |
| | |||||
* | lifecycle should be two words, life cycle | Jaime Iniesta | 2010-08-26 | 1 | -1/+1 |
| | |||||
* | applied guidelines to "# =>" | Paco Guzman | 2010-08-12 | 1 | -1/+1 |
| | |||||
* | Prep for RC | David Heinemeier Hansson | 2010-07-26 | 1 | -1/+1 |
| | |||||
* | Add missing entries and tidy up CHANGELOG. | José Valim | 2010-07-19 | 1 | -0/+2 |
| | |||||
* | Add missing CHANGELOG items. | José Valim | 2010-06-30 | 1 | -0/+2 |
| | |||||
* | Update CHANGELOGs. | José Valim | 2010-06-28 | 1 | -1/+4 |
| | |||||
* | Information about new rake task in CHANGELOG | Łukasz Strzałkowski | 2010-06-28 | 1 | -0/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Clean CHANGELOG whitespace. | Emilio Tagua | 2010-06-22 | 1 | -254/+254 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | setting the timezone in postgres to whatever ruby thinks the timezone is ↵ | Aaron Patterson | 2010-06-17 | 1 | -0/+5 |
| | | | | | | [#4895 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "Temporarily revert "Update after_commit and after_rollback docs and ↵ | Jeremy Kemper | 2010-06-08 | 1 | -0/+2 |
| | | | | | | | | tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction."" This reverts commit 1b2941cba1165b0721f57524645fe378bee2a950. [#2991] | ||||
* | Fix ActiveRecord::Base.compute_type swallowing NoMethodError. [#4751 ↵ | Andrew Bloomgarden | 2010-06-08 | 1 | -0/+2 |
| | | | | | | state:resolved] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Temporarily revert "Update after_commit and after_rollback docs and tests to ↵ | Jeremy Kemper | 2010-06-08 | 1 | -2/+0 |
| | | | | | | | | | | | | | | use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction." This reverts commits d2a49e4b1f30c5997e169110eed94a55aee53f56 and da840d13da865331297d5287391231b1ed39721b. [#2991] Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/transactions.rb activerecord/test/cases/transaction_callbacks_test.rb | ||||
* | Get ready for beta 4 | David Heinemeier Hansson | 2010-06-08 | 1 | -1/+1 |
| | |||||
* | Revert "Revert "Add index length support for MySQL [#1852 state:open]"" | Pratik Naik | 2010-05-09 | 1 | -0/+10 |
| | | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39. | ||||
* | Revert "Add index length support for MySQL [#1852 state:open]" | José Valim | 2010-05-08 | 1 | -10/+0 |
| | | | | | | | | | | | | | This commit breaks dumping a few tables, as the sessions table. To reproduce, just create a new application and: rake db:sessions:create rake db:migrate rake db:test:prepare And then look at the db/schema.rb file (ht: Sam Ruby). This reverts commit 5b95730edc33ee97f53da26a3868eb983305a771. | ||||
* | Add index length support for MySQL [#1852 state:resolved] | Emili Parreno | 2010-05-08 | 1 | -0/+10 |
| | | | | | | | | | | | | Example: add_index(:accounts, :name, :name => 'by_name', :length => 10) => CREATE INDEX by_name ON accounts(name(10)) add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15}) => CREATE INDEX by_name_surname ON accounts(name(10), surname(15)) Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Make find_or_create and find_or_initialize work mixing explicit parameters ↵ | Santiago Pastorino | 2010-05-07 | 1 | -0/+2 |
| | | | | | | and a hash [#4457 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add after_commit and after_rollback callbacks to ActiveRecord that are ↵ | Brian Durand | 2010-04-29 | 1 | -0/+2 |
| | | | | | | | | called after transactions either commit or rollback on all records saved or destroyed in the transaction. [#2991 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵ | José Valim | 2010-04-29 | 1 | -0/+2 |
| | | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array. | ||||
* | Destroy respects optimistic locking. | Curtis Hawthorne | 2010-04-27 | 1 | -0/+2 |
| | | | | | | | | | | Now works with :dependent => :destroy and includes unit tests for that case. Also includes better error messages when updating/deleting stale objects. [#1966 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Drop support for postgres driver. Use pg >= 0.9.0. | Jeremy Kemper | 2010-04-24 | 1 | -0/+2 |
| | |||||
* | improve how ActiveRecord::Observer defines callbacks on observed models | Mislav Marohnić | 2010-04-16 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | Instead of using a single `notify_observers` call for every callback type, each observer now registers a unique callback for itself. Example: before_save :_notify_user_observer_for_before_save def _notify_user_observer_for_before_save observer.update(:before_save, self) end Benefit: "before" callbacks halt when `observer.update` returns false. This way, ActiveRecord observers can prevent records from saving. [#4087 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Update changelogs for release | David Heinemeier Hansson | 2010-04-13 | 1 | -1/+1 |
| |