aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make merging of order values consistentPratik Naik2010-01-171-1/+3
|
* Deprecate ActiveRecord::Base.colorize_logging.José Valim2010-01-131-1/+1
|
* Changed ActiveRecord::Base.store_full_sti_class to be true by default ↵David Heinemeier Hansson2010-01-031-0/+3
| | | | reflecting the previously announced Rails 3 default [DHH]
* Simplify repair_validations on AR and make it work with new callbacks.José Valim2010-01-011-1/+4
|
* Don't publicize with_scope for tests since it may shadow public misuseJeremy Kemper2009-12-281-9/+9
|
* Make Model.all return an array rather than a relation for consistency. Use ↵Pratik Naik2009-12-271-1/+7
| | | | Model.scoped to get a relation
* Replace reset_counter_cache with reset_counters that has API inline with ↵Gabe da Silveira2009-12-031-2/+2
| | | | | | | | existing update_counters method [#1211 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Implement ActiveRecord#reset_counter_cacheMike Breen2009-12-021-0/+10
| | | | | | [#1211 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Unify benchmark APIs.José Valim2009-10-151-5/+5
|
* Merge commit 'rails/master'Emilio Tagua2009-10-071-1/+1
|\
| * Call initialize_copy when cloning [#3164 state:resolved]Paul Gillard2009-10-061-1/+1
| | | | | | | | | | | | | | | | Cloned AR objects are now instantiated through initialize_copy rather than new/initialize. This allows AR classes to override initialize_copy in order to implement deep cloning. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* | Use immutable relation objects to generate queries.Emilio Tagua2009-08-181-1/+1
| |
* | Use finder options as relation method names to provide more familiarEmilio Tagua2009-08-181-1/+1
| | | | | | | | | | naming. Use bang methods convention in methods that alter the relation.
* | Merge commit 'rails/master'Emilio Tagua2009-08-171-10/+8
|\|
| * Remove support for SQLite 2.Pratik Naik2009-08-171-10/+8
| | | | | | | | If you're still using it, please install the plugin from git://github.com/rails/sqlite2_adapter.git
* | Merge commit 'rails/master'Emilio Tagua2009-08-101-1/+46
|\| | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * With multiparameter date attributes, the behaviour when empty fields are ↵Hugo Peixoto2009-08-091-1/+46
| | | | | | | | | | | | | | | | present is now coherent with the one described in the date_select documentation. [#1715 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Merge commit 'rails/master'Emilio Tagua2009-08-081-0/+17
|\| | | | | | | | | | | Conflicts: activerecord/test/cases/adapter_test.rb activerecord/test/cases/method_scoping_test.rb
| * Add destroyed? to ActiveRecord, include tests for polymorphic urls for ↵José Valim2009-08-071-0/+17
| | | | | | | | destroyed objects and refactor mime responds tests and documentation.
* | Merge commit 'rails/master'Emilio Tagua2009-08-051-0/+69
|\|
| * quoted_date converts time-like objects to ↵Geoff Buesing2009-08-031-0/+69
| | | | | | | | ActiveRecord::Base.default_timezone before serialization. This allows you to use Time.now in find conditions and have it correctly be serialized as the current time in UTC when default_timezone == :utc [#2946 state:resolved]
* | Merge commit 'rails/master'Emilio Tagua2009-07-311-5/+0
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb
| * Undefine id and let it automatically be generatedJoshua Peek2009-07-301-5/+0
| |
* | Introduced ActiveRecord::Relation, a layer between an ARel relation and an ↵Emilio Tagua2009-07-211-1/+1
|/ | | | AR relation
* Add primary_key option to belongs_to associationSzymon Nowak2009-07-151-1/+1
| | | | | | [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added AR:B#dup method for duplicationg object without frozen attributes ↵Yehuda Katz + Carl Lerche2009-07-011-0/+4
| | | | | [#2859 state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>
* Revert "Revert "Generate proper :counter_sql from :finder_sql when there is ↵Pratik Naik2009-07-011-3/+3
| | | | | | | | | a newline character immediately following 'SELECT' [#2118 state:resolved]"" This reverts commit 80f1f863cd0f9cba89079511282de5710a2e1832. The feature doesn't work on Postgres, so don't test it on Postgres. Also, Postgres compatibility is irrelevant to the ticket/patch in question.
* Revert "Generate proper :counter_sql from :finder_sql when there is a ↵Yehuda Katz + Carl Lerche2009-06-221-3/+3
| | | | | | | | newline character immediately following 'SELECT' [#2118 state:resolved]" This reverts commit 4851ca9e13a4317342df02ae25b1929340523f7a. The tests do not pass for postgresql.
* Generate proper :counter_sql from :finder_sql when there is a newline ↵Patrick Joyce2009-06-211-3/+3
| | | | | | character immediately following 'SELECT' [#2118 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* disabled base_test.rb tests that were not Oracle compatible (TIME datatype ↵Raimonds Simanovskis2009-06-091-30/+41
| | | | | | is not supported on Oracle, UPDATE does not support ORDER BY) _before_type_cast on Oracle returns Time and not String added Oracle specific schema definition that was missing for test_default_values test Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Fix models load order to be able to run unit tests.Emilio Tagua2009-04-231-3/+3
| | | | | | [#2550 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add microsecond support for sqlite adapter [#1982 state:resolved]Alex Pooley2009-04-211-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Specify :group with the table name for it to work on sqlite3Pratik Naik2009-04-211-1/+1
|
* Allow find(:last) :order be a symbol [#2024 state:resolved]Rob Anderton2009-03-091-0/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-081-9/+9
| | | | [#1617 state:resolved]
* DRY with_kcode in Active Record testsPratik Naik2009-03-071-14/+0
|
* Fix that scoped find with :group and :having [#2006 state:resolved]Mike Gunderloy2009-02-281-0/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add array id support to Model.update_counters. [#1254 state:resolved] ↵Pratik Naik2009-01-281-0/+7
| | | | [Carlos Júnior]
* ActiveRecord::Base#new_record? now returns false for existing records (was ↵Yaroslav Markin2008-12-271-0/+5
| | | | | | nil) [#1219 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Ensure of Model#create support custom updated_at and updated_on attributes ↵Luis Hurtado2008-12-221-0/+10
| | | | | | [#1612 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Remove SQL Server cases from tests for latest adapter work to pass rails ↵Ken Collins2008-11-191-8/+5
| | | | | | expected behavior. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fixed that serialized strings should never be type-casted (i.e. turning ↵David Heinemeier Hansson2008-10-271-0/+6
| | | | "Yes" to a boolean)(Andreas Korth) [#857 state:committed]
* Merge branch 'patches' into multibyteMichael Koziarski2008-09-221-0/+26
|\
| * Add Model#delete instance method, similar to Model.delete class method. ↵Hongli Lai (Phusion2008-09-211-0/+26
| | | | | | | | | | | | [#1086 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Fix a test that assumes .mb_chars to always return an instance of the ↵Manfred Stienstra2008-09-211-7/+23
| | | | | | | | proxy_class.
* | Change all calls to String#chars to String#mb_chars. Remove a exception for ↵Manfred Stienstra2008-09-211-2/+2
|/ | | | Ruby <= 1.9.
* Multiparameter attributes skip time zone conversion for time-only columns ↵gbuesing2008-09-141-0/+18
| | | | [#1030 state:resolved]
* Support :limit on update_all so that has_many with :limit can be safely updatedTarmo Tänav2008-09-101-4/+15
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Revert "Revert "Raise UnknownAttributeError when unknown attributes are ↵Jeremy Kemper2008-09-081-0/+8
| | | | | | supplied via mass assignment"" This reverts commit 41efd73887c00ffd228b05d9346ec47a1f3759b9.