Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Backported #7072 to 3-2-stable. Use database value for uniqueness validation ↵ | Narihiro Nakamura | 2013-02-26 | 1 | -0/+16 |
| | | | | scope. | ||||
* | Fix `validates_uniqueness_off :field, :allow_nil => false` | Piotr Sarnacki | 2012-05-19 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | Closes (#5853) Uniqueness validator was not properly checking if there are any existing records, when value was `nil` and column was text type. `nil` was converted to string, which resulted in queries looking like: ```sql SELECT 1 FROM "posts" WHERE "posts"."title" = '' LIMIT 1 ``` instead of ```sql SELECT 1 FROM "posts" WHERE "posts"."title" IS NULL LIMIT 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. | ||||
* | Do not use SQL LIKE operator for case insensitive uniqueness validation | Raimonds Simanovskis | 2011-04-25 | 1 | -0/+26 |
| | | | It can result in wrong results if values contain special % or _ characters. It is safer to use SQL LOWER function and compare for equality. | ||||
* | DRY up the code which instantiates the association proxy | Jon Leighton | 2011-01-11 | 1 | -13/+0 |
| | |||||
* | removing many unused variables | Aaron Patterson | 2010-11-16 | 1 | -2/+2 |
| | |||||
* | Ensure new validates works with uniqueness validator. | José Valim | 2010-01-08 | 1 | -30/+35 |
| | |||||
* | Simplify repair_validations on AR and make it work with new callbacks. | José Valim | 2010-01-01 | 1 | -11/+0 |
| | |||||
* | Don't publicize with_scope for tests since it may shadow public misuse | Jeremy Kemper | 2009-12-28 | 1 | -1/+1 |
| | |||||
* | Fixed typo in test name and CHANGELOG [#3017 state:resolved] | Arthur Zapparoli | 2009-08-10 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | validate uniqueness with limit in utf8 | Elise Huard | 2009-08-09 | 1 | -0/+10 |
| | | | | | | [#2653 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix standalone test missing developer fixture | Jeremy Kemper | 2009-08-09 | 1 | -1/+2 |
| | |||||
* | Added a uniqueness validation test that uses diacritics. | Hugo Peixoto | 2009-08-09 | 1 | -2/+2 |
| | | | | | | [#2883 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Move relevant validation tests from Active Record to Active Model | Pratik Naik | 2009-03-20 | 1 | -0/+278 |