Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | disabled base_test.rb tests that were not Oracle compatible (TIME datatype ↵ | Raimonds Simanovskis | 2009-06-09 | 1 | -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 extensions | Jeremy Kemper | 2009-05-13 | 1 | -0/+1 |
| | |||||
* | Fix models load order to be able to run unit tests. | Emilio Tagua | 2009-04-23 | 1 | -3/+3 |
| | | | | | | [#2550 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add microsecond support for sqlite adapter [#1982 state:resolved] | Alex Pooley | 2009-04-21 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Specify :group with the table name for it to work on sqlite3 | Pratik Naik | 2009-04-21 | 1 | -1/+1 |
| | |||||
* | Allow find(:last) :order be a symbol [#2024 state:resolved] | Rob Anderton | 2009-03-09 | 1 | -0/+5 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -9/+9 |
| | | | | [#1617 state:resolved] | ||||
* | DRY with_kcode in Active Record tests | Pratik Naik | 2009-03-07 | 1 | -14/+0 |
| | |||||
* | Fix that scoped find with :group and :having [#2006 state:resolved] | Mike Gunderloy | 2009-02-28 | 1 | -0/+7 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add array id support to Model.update_counters. [#1254 state:resolved] ↵ | Pratik Naik | 2009-01-28 | 1 | -0/+7 |
| | | | | [Carlos Júnior] | ||||
* | ActiveRecord::Base#new_record? now returns false for existing records (was ↵ | Yaroslav Markin | 2008-12-27 | 1 | -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 Hurtado | 2008-12-22 | 1 | -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 Collins | 2008-11-19 | 1 | -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 Hansson | 2008-10-27 | 1 | -0/+6 |
| | | | | "Yes" to a boolean)(Andreas Korth) [#857 state:committed] | ||||
* | Merge branch 'patches' into multibyte | Michael Koziarski | 2008-09-22 | 1 | -0/+26 |
|\ | |||||
| * | Add Model#delete instance method, similar to Model.delete class method. ↵ | Hongli Lai (Phusion | 2008-09-21 | 1 | -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 Stienstra | 2008-09-21 | 1 | -7/+23 |
| | | | | | | | | proxy_class. | ||||
* | | Change all calls to String#chars to String#mb_chars. Remove a exception for ↵ | Manfred Stienstra | 2008-09-21 | 1 | -2/+2 |
|/ | | | | Ruby <= 1.9. | ||||
* | Multiparameter attributes skip time zone conversion for time-only columns ↵ | gbuesing | 2008-09-14 | 1 | -0/+18 |
| | | | | [#1030 state:resolved] | ||||
* | Support :limit on update_all so that has_many with :limit can be safely updated | Tarmo Tänav | 2008-09-10 | 1 | -4/+15 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Revert "Revert "Raise UnknownAttributeError when unknown attributes are ↵ | Jeremy Kemper | 2008-09-08 | 1 | -0/+8 |
| | | | | | | supplied via mass assignment"" This reverts commit 41efd73887c00ffd228b05d9346ec47a1f3759b9. | ||||
* | Revert "Raise UnknownAttributeError when unknown attributes are supplied via ↵ | Jeremy Kemper | 2008-09-06 | 1 | -8/+0 |
| | | | | | | mass assignment" This reverts commit 108db00aa90fe266564483ab301cf0669cae600f. | ||||
* | Deprecate verification_timeout and verify before reset | Nick Sieger | 2008-09-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Deprecate allow_concurrency and make it have no effect | Nick Sieger | 2008-08-29 | 1 | -1/+1 |
| | |||||
* | fix another ordering failure | Jeremy Kemper | 2008-08-26 | 1 | -1/+1 |
| | |||||
* | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-22 | 1 | -1/+9 |
| | | | | [#860 state:resolved] | ||||
* | Fixed Time/Date object serialization | Tarmo Tänav | 2008-08-12 | 1 | -0/+6 |
| | | | | | Time/Date objects used to be converted to_s instead of to_uaml which made them unserializable. | ||||
* | Added missing fixtures for tests which fail to run independently if run ↵ | Tarmo Tänav | 2008-08-04 | 1 | -1/+1 |
| | | | | | | after schema reset Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fix file permissions | Tarmo Tänav | 2008-07-31 | 1 | -0/+0 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Raise UnknownAttributeError when unknown attributes are supplied via mass ↵ | Pratik Naik | 2008-07-31 | 1 | -0/+8 |
| | | | | assignment | ||||
* | update_counters should update nil values. | miloops | 2008-07-15 | 1 | -2/+19 |
| | | | | | | This allows counter columns with default null instead of requiring default 0. [#493 state:resolved] | ||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -14/+14 |
| | | | | ActiveSupport [#238 state:resolved] | ||||
* | Added block-setting of attributes for Base.create like Base.new already has ↵ | David Heinemeier Hansson | 2008-04-30 | 1 | -0/+21 |
| | | | | (Adam Meehan) [#39 state:resolved] | ||||
* | Let Base.all use conditions etc like first/last | David Heinemeier Hansson | 2008-04-28 | 1 | -0/+4 |
| | |||||
* | Use schema.rb for all databases | Frederick Cheung | 2008-04-22 | 1 | -1/+1 |
| | | | | | | Move adapter specific schema into their own files Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Partial updates include only unsaved attributes. Off by default; set ↵ | Jeremy Kemper | 2008-03-31 | 1 | -0/+1 |
| | | | | | | YourClass.partial_updates = true to enable. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now ↵ | Geoff Buesing | 2008-03-30 | 1 | -19/+17 |
| | | | | | | bundled git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix some mistaken dependencies among AR unit tests. Closes #11425 ↵ | Jeremy Kemper | 2008-03-28 | 1 | -2/+2 |
| | | | | | | [thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make sure ActiveRecord tests can run individually. Closes #11425 ↵ | Pratik Naik | 2008-03-28 | 1 | -1/+4 |
| | | | | | | [thechrisoshow, h-lame] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added ActiveRecord#Base.all/first/last as aliases for ↵ | David Heinemeier Hansson | 2008-03-24 | 1 | -0/+4 |
| | | | | | | find(:all/:first/:last) (closes #11413) [nkallen, thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9085 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen] | Rick Olson | 2008-03-24 | 1 | -18/+22 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added ActiveRecord::Base.find(:last) (closes #11338) [miloops] | David Heinemeier Hansson | 2008-03-12 | 1 | -0/+27 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Revert to previous mysql-specific assertion, and only run the test on mysql. | Michael Koziarski | 2008-02-20 | 1 | -3/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | remove implicit assumption about mysql in the assertion | Michael Koziarski | 2008-02-20 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Correct typo in before_type_cast code. Closes #11165 [amishyn] | Michael Koziarski | 2008-02-19 | 1 | -1/+17 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | ActiveRecord::Base#instantiate_time_object only uses Time.zone when ↵ | Geoff Buesing | 2008-02-16 | 1 | -0/+15 |
| | | | | | | Base.time_zone_aware_attributes is true; leverages Time#time_with_datetime_fallback for readability git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Remove options from the attributes method, tidy up the implementation. ↵ | Michael Koziarski | 2008-02-13 | 1 | -17/+0 |
| | | | | | | Closes #11093 [juanjo.bazan, Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Multiparameter attributes for time columns fail over to DateTime when out of ↵ | Geoff Buesing | 2008-02-10 | 1 | -0/+11 |
| | | | | | | range of Time git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add uses_tzinfo to active record tests to prevent breaking the cc.rb build ↵ | Michael Koziarski | 2008-02-06 | 1 | -18/+20 |
| | | | | | | etc. Closes #11034 [mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Time Zone support to ActiveRecord, and config.time_zone property for ↵ | Rick Olson | 2008-02-06 | 1 | -0/+52 |
| | | | | | | specifying a default Time Zone. Closes #10982 [Geoff Buesing, rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |