aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations
Commit message (Expand)AuthorAgeFilesLines
* Module#{attr,attr_accessor,attr_reader,attr_writer} become public since Ruby 2.5Ryuta Kamizono2018-12-213-3/+3
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-24/+24
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-4/+4
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-172-2/+2
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-251-5/+5
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-255-59/+59
* Change refute to assert_notDaniel Colson2018-01-251-2/+2
* Check :scope input in Uniqueness validatorKir Shatrov2017-08-131-0/+7
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-197-0/+14
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-027-7/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-017-0/+7
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2017-03-041-1/+1
|\
| * Remove duplicated "does" [ci skip]Ryuta Kamizono2017-02-141-1/+1
* | Fix a tests of AR::ValueTooLong when using OracleAdapterKoichi ITO2017-02-141-2/+2
|/
* fix the uniqueness validation scope with a polymorphic associationSergey Alekseev2016-11-261-0/+16
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
* Fix broken comments indentation caused by rubocop auto-correct [ci skip]Ryuta Kamizono2016-09-141-1/+1
* Add three new rubocop rulesRafael Mendonça França2016-08-163-15/+15
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
* remove redundant curlies from hash argumentsXavier Noria2016-08-061-4/+4
* modernizes hash syntax in activerecordXavier Noria2016-08-064-50/+50
* applies new string literal convention in activerecord/testXavier Noria2016-08-067-81/+81
* Add i18n_validation_testsukesan19842016-06-021-4/+2
* Merge pull request #23523 from kamipo/avoid_truncation_in_uniqueness_validationJeremy Daer2016-04-181-10/+32
|\
| * Avoid a string value truncation in uniqueness validationRyuta Kamizono2016-02-121-10/+22
* | remove outdated comment [ci skip]yuuji.yaginuma2016-03-051-6/+0
* | Fix test name typo prescence -> presenceeileencodes2016-02-271-1/+1
* | Fix uniqueness validation with an after_create hook.Joe Rafaniello2016-02-251-0/+18
* | Revert changes to validations from PR #18612eileencodes2016-02-234-63/+21
* | Merge pull request #23628 from maclover7/fix-23625Sean Griffin2016-02-231-0/+26
|\ \
| * | Fix issue #23625Jon Moss2016-02-181-0/+26
| |/
* | Match test name to test (typo)Ian Fleeton2016-02-211-1/+1
* | Always validate record if validating a virtual attributeeileencodes2016-02-203-0/+45
|/
* UniquenessValidator exclude itself when PK changedDiego Silva2016-02-091-0/+11
* Improve support for non Active Record objects on `validates_associated`Kassio Borges2015-11-081-0/+12
* File encoding is defaulted to utf-8 in Ruby >= 2.1Akira Matsuda2015-09-181-1/+0
* Removed mocha from Active Record Part 1Ronak Jangir2015-08-251-4/+6
* uniqueness validation raises error for persisted record without pk.Yves Senn2015-08-201-0/+23
* Properly allow uniqueness validations on primary keys.Sean Griffin2015-07-251-0/+19
* AR absence validator respects `marked_for_destruction?`. Closes #20449.Yves Senn2015-06-221-0/+75
* Merge branch 'fix_uniqueness_validation_when_value_is_out_of_range'Sean Griffin2015-04-081-0/+25
|\
| * Fix uniqueness validation with out of range valueAndrey Voronkov2015-04-081-0/+25
|/
* replace `repair_validations` with a disposable subclass.Yves Senn2015-03-061-32/+33
* Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 on...Vipul A M2015-02-033-3/+0
* Fix validations on child record when record parent has validate: falseeileencodes2015-02-014-5/+50
* AR specific length validator to respect `marked_for_destruction`.Yves Senn2014-12-301-0/+18
* pg tests, move uniqueness validation test to array tests.Yves Senn2014-12-021-17/+0
* Fixes a bug found when running individual tests against #17217 after mergingSammy Larbi2014-11-101-1/+1
* Clear validators before and after each testAkira Matsuda2014-08-141-0/+1