Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix GH #4754. Remove double-quote when using ANSI_QUOTES | kennyj | 2012-01-31 | 1 | -0/+16 |
| | |||||
* | Fix CI | Jon Leighton | 2011-12-28 | 1 | -2/+2 |
| | |||||
* | Cache columns at the model level. | Jon Leighton | 2011-12-16 | 1 | -8/+30 |
| | | | | Allows two models to use the same table but have different primary keys. | ||||
* | Fix #3987. | Jon Leighton | 2011-12-15 | 1 | -0/+10 |
| | |||||
* | Add test for read_attribute(:id) with non-standard PK. | Jon Leighton | 2011-12-01 | 1 | -0/+5 |
| | | | | | | | | Also make it actually work. It slows down all read_attribute accesses to map 'id' to whatever the PK actually is, inside read_attribute. So instead make sure the necessary methods are defined and that they redirect wherever they need to go. | ||||
* | Deprecate set_primary_key in favour of self.primary_key= | Jon Leighton | 2011-11-29 | 1 | -5/+2 |
| | |||||
* | Transactional fixtures enlist all active database connections. | Jeremy Kemper | 2011-10-05 | 1 | -0/+4 |
| | | | | You can use multiple databases in your tests without disabling transactional fixtures. | ||||
* | Revert "Raise error on unknown primary key." | Jon Leighton | 2011-10-05 | 1 | -14/+0 |
| | | | | This reverts commit ee2be435b1e5c0e94a4ee93a1a310e0471a77d07. | ||||
* | Raise error on unknown primary key. | Jon Leighton | 2011-10-05 | 1 | -0/+14 |
| | | | | | If we don't have a primary key when we ask for it, it's better to fail fast. Fixes GH #2307. | ||||
* | Don't require a DB connection when setting primary key. | Jon Leighton | 2011-09-26 | 1 | -0/+16 |
| | | | | Closes #2807. | ||||
* | Revert "to_key on a destroyed model should return nil". Closes #2440 | Santiago Pastorino | 2011-08-05 | 1 | -1/+1 |
| | | | | This reverts commit c5448721b5054b8a467958d60427fdee15eac604. | ||||
* | to_key on a destroyed model should return nil | Santiago Pastorino | 2011-07-09 | 1 | -1/+1 |
| | |||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | Quote find_in_batches ORDER BY clause [#6620 state:resolved] | Andrew White | 2011-03-29 | 1 | -0/+9 |
| | |||||
* | code gardening: we have assert_(nil|blank|present), more concise, with ↵ | Xavier Noria | 2010-08-17 | 1 | -1/+1 |
| | | | | better default failure messages - let's use them | ||||
* | Revert "Makes AR use AMo to_key implementation" | Santiago Pastorino | 2010-08-15 | 1 | -1/+1 |
| | | | | This reverts commit 36a84a4f15f29b41c7cac2f8de410055006a8a8d. | ||||
* | Makes AR use AMo to_key implementation | Santiago Pastorino | 2010-08-13 | 1 | -1/+1 |
| | | | | [#5249] | ||||
* | expected value should come first in assert_equal | Neeraj Singh | 2010-07-18 | 1 | -2/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | primary_keys_test reads better than pk_test | Neeraj Singh | 2010-07-18 | 1 | -0/+139 |
Signed-off-by: José Valim <jose.valim@gmail.com> |