Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clear the rest of the warnings, run with warnings turned on [#4332 ↵ | Aaron Patterson | 2010-04-10 | 1 | -25/+39 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | kill warnings on 1.8.7 [#4331 state:resolved] | Aaron Patterson | 2010-04-10 | 1 | -4/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "When creating database with rake, create schemas in ↵ | Michael Koziarski | 2010-04-09 | 2 | -13/+0 |
| | | | | | | | | | | | | | schema_search_path if it doesn't exist." This reverts commit 6c2a0675f11a9b5b8e88ed7dbccd65cb51be8029. Reverting because it breaks the ability to run tests using a non-superuser. Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb activerecord/lib/active_record/railties/databases.rake | ||||
* | Dirty datetime attributes should be aware of time zone info [#3658 ↵ | Kristopher Murata | 2010-04-08 | 1 | -0/+95 |
| | | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Reset named scope cache whenever the @target is reset | Pratik Naik | 2010-04-07 | 1 | -0/+10 |
| | |||||
* | Memoize association.named_scope calls | Pratik Naik | 2010-04-05 | 1 | -0/+9 |
| | |||||
* | Add tests to prevent regression of lazy evaluation of has_many ..., ↵ | Andrew White | 2010-04-04 | 1 | -0/+18 |
| | | | | | | | | :dependent => :___ [#2627 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add Relation extensions | Pratik Naik | 2010-04-02 | 2 | -0/+22 |
| | |||||
* | Add tests for postgresql column type mapping updates [#4270 state:resolved] | Ernie Miller | 2010-03-31 | 1 | -0/+17 |
| | | | | Signed-off-by: Emilio Tagua <miloops@gmail.com> | ||||
* | Dont try to load the record from the db if preloading didn't find anything | Pratik Naik | 2010-03-31 | 1 | -0/+6 |
| | |||||
* | Fix failing test in MySQL. | Emilio Tagua | 2010-03-30 | 1 | -3/+8 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Named scopes shouldn't test equality using to_a if it's not an Array, this ↵ | Emilio Tagua | 2010-03-30 | 1 | -3/+9 |
| | | | | | | was causing records to be loaded before they were needed. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix dom_id for ActiveRecord [#4296 state:resolved] | José Valim | 2010-03-30 | 1 | -0/+6 |
| | |||||
* | Fix honoring :primary_key option when joining or eager loading a belongs_to ↵ | Ernie Miller | 2010-03-29 | 1 | -0/+13 |
| | | | | | | | | association [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Warn scoped order and limit are ignored. [#4123 state:resolved] | Emilio Tagua | 2010-03-29 | 1 | -3/+13 |
| | |||||
* | Add the ability to specify table_name_prefix on individual modules | Andrew White | 2010-03-28 | 2 | -0/+45 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | defining a named_scope which overwrites an existing method is now allowed we ↵ | Matthew Rudy Jacobs | 2010-03-28 | 1 | -2/+15 |
| | | | | | | | | | just log a warning. This was motivated by the fact that :open is defined on all classes as such the named_scope "open" can never be used, without hacking ActiveRecord with an "undef_method" [#4083 state:resolved] Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Add :dependent = to has_one and has_many [#3075 state:resolved] | Rizwan Reza | 2010-03-28 | 4 | -2/+29 |
| | |||||
* | When creating database with rake, create schemas in schema_search_path if it ↵ | Rizwan Reza | 2010-03-28 | 2 | -0/+13 |
| | | | | doesn't exist. | ||||
* | Revert "primary_key now supports :limit for MySQL". Break Sam Ruby app. | José Valim | 2010-03-27 | 2 | -13/+2 |
| | | | | | | To reproduce, start a new application, create a scaffold and run test suite. [#876 state:open] This reverts commit faeca694b3d4afebf6b623b493e86731e773c462. | ||||
* | primary_key now supports :limit for MySQL | Rizwan Reza | 2010-03-27 | 2 | -2/+13 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Revert "primary_key now supports :limit. [#876 state:resolved]" since it ↵ | José Valim | 2010-03-27 | 2 | -13/+2 |
| | | | | | | broke AR test suite. This reverts commit 41e5c7ed44fedb95636ef9b7a792c46ea03309bd. | ||||
* | primary_key now supports :limit. [#876 state:resolved] | Rizwan Reza | 2010-03-27 | 2 | -2/+13 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Revert "Changed behavior of touch and added touch! Originally implemented by ↵ | Pratik Naik | 2010-03-27 | 1 | -25/+0 |
| | | | | | | Obie Fernandez, updated touch! to act as a thin wrapper to touch. [#2520 state:resolved]" This reverts commit 3a875e618487a06a56f6cf912cf5440f294921cc. | ||||
* | Changed behavior of touch and added touch! Originally implemented by Obie ↵ | Nathaniel Bibler | 2010-03-27 | 1 | -0/+25 |
| | | | | | Fernandez, updated touch! to act as a thin wrapper to touch. [#2520 state:resolved] Signed-off-by: wycats <wycats@gmail.com> | ||||
* | In PostgreSQLAdapter, switch tables query to use current_schemas function ↵ | Kris Selden | 2010-03-26 | 1 | -0/+9 |
| | | | | | | [#918 state:resolved] Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Add add_limit_offset! to adapters. | Emilio Tagua | 2010-03-25 | 1 | -0/+21 |
| | |||||
* | expand migration paths before requiring them. [#4240 state:resolved] | Aaron Patterson | 2010-03-23 | 1 | -0/+13 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | do not use unloadable constants in tests [#4260 state:resolved] | Aaron Patterson | 2010-03-23 | 1 | -2/+1 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Reset class attribute after changing it | Evan Phoenix | 2010-03-22 | 1 | -0/+2 |
| | |||||
* | Clear the query cache between tests that test the query cache | Evan Phoenix | 2010-03-22 | 1 | -0/+4 |
| | |||||
* | Remove obsolete use case that was broken in AR::Observers | Evan Phoenix | 2010-03-22 | 1 | -40/+0 |
| | |||||
* | Don't depend on order of elements in Set | Evan Phoenix | 2010-03-22 | 1 | -5/+16 |
| | |||||
* | Remove test ordering bug by using another class | Evan Phoenix | 2010-03-22 | 1 | -4/+7 |
| | |||||
* | squelching more warnings in the AR tests. [#4218 state:resolved] | Aaron Patterson | 2010-03-18 | 3 | -13/+39 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | removing dead code from activerecord tests. [#4187 state:resolved] | Aaron Patterson | 2010-03-15 | 4 | -46/+0 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | cleaning up a bunch of parse time warnings in AR [#4186 state:resolved] | Aaron Patterson | 2010-03-15 | 9 | -26/+26 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Hack to keep column metadata queries out of test query counts | Jeremy Kemper | 2010-03-15 | 1 | -0/+5 |
| | |||||
* | Hack to keep column metadata queries out of test query counts | Jeremy Kemper | 2010-03-15 | 1 | -3/+7 |
| | |||||
* | restricts a test to < 1.9, and rewrites it using a proper expectation | Xavier Noria | 2010-03-13 | 2 | -11/+6 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | adds coverage for the issue addressed in fe43bbd | Xavier Noria | 2010-03-12 | 1 | -0/+14 |
| | | | | | | [#4166 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix associations to call :destroy or :delete based on the right :dependent ↵ | Carlos Antonio da Silva | 2010-03-09 | 6 | -37/+36 |
| | | | | | | option Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -0/+1 |
| | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook | ||||
* | Somehow this fixes the AR tests when ran with rake. I should probably figure ↵ | Carl Lerche | 2010-03-04 | 1 | -1/+1 |
| | | | | out why. | ||||
* | Fix active_records' log tests | Carl Lerche | 2010-03-02 | 1 | -2/+3 |
| | |||||
* | activerecord test load paths | Joshua Peek | 2010-02-28 | 1 | -0/+3 |
| | |||||
* | ActiveRecord should raise an error on invalid migration types. | José Valim | 2010-02-28 | 1 | -0/+10 |
| | |||||
* | fixed a 'RecordNotFound' bug when calling 'reload' on a object which doesn't ↵ | Tobias Bielohlawek | 2010-02-26 | 1 | -0/+6 |
| | | | | | | | | met the default_scope conditions, added test [#3166 status:resolved] The reload method didn't made use of 'with_exclusive_scope' when reloading the object. This lead to a RecordNotFound exception, in case the object doesn't met the default_scope condition (anymore) - which is obviously a bug. This quick fix makes use of with_exclusive_scope in the reload method as well. See test for full example. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix a bug where default_scope was overriding attributes given on model ↵ | Henry Hsu | 2010-02-26 | 2 | -0/+15 |
| | | | | | | initialization [#3218 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "Fix test load paths for those not using bundler" | Carlhuda | 2010-02-23 | 2 | -8/+2 |
| | | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path. |