aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/enum_test.rb
Commit message (Expand)AuthorAgeFilesLines
* option to disable scopes that `ActiveRecord.enum` generates by defaultAlfred Dominic2018-12-041-0/+9
* Raises error when attempting to modify enum valuesebyrds2018-11-231-0/+14
* Guard Enums against definitions with blank label namesChristophe Maximin2018-11-071-0/+18
* Raise on invalid definition valuesAlberto Almagro2018-10-101-0/+11
* Remove extra whitespaceDaniel Colson2018-01-251-4/+4
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-61/+61
* Use respond_to test helpersDaniel Colson2018-01-251-9/+9
* Prevent scope named same as a ActiveRecord::Relation instance method.Chen Kinnrot2017-11-281-0/+18
* Load both `:authors` and `:author_addresses` to keep data integrityYasuo Honda2017-08-221-1/+1
* Fix test "_before_type_cast" for enum (#29004)Ryuta Kamizono2017-08-161-6/+8
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Prevent making bind param if casted value is nilRyuta Kamizono2017-05-311-0/+2
* Refactor enum to use `value` instead of `label` in the scopeRyuta Kamizono2017-05-071-2/+2
* Add type caster to `RuntimeReflection#alias_name`Jon Moss2017-05-021-1/+4
* Add tests for ActiveRecord::Enum#enum when suffix specifiedYosuke Kabuto2016-09-121-0/+40
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-19/+19
* Fix `enum` with `alias_attribute`Ryuta Kamizono2016-07-311-0/+16
* return correct type from `EnumType`yuuji.yaginuma2016-06-241-0/+4
* Use the database type to deserialize enumSean Griffin2016-01-231-0/+10
* use `assert_not` instead of `refute` as mentioned in our guides.Yves Senn2015-08-131-13/+13
* Use default model enum in fixtures if not definedeileencodes2015-07-021-0/+6
* Add enum prefix/suffix option to enum definitionIgor Kapkov2015-06-121-0/+50
* Resolve enums in test fixturesGeorge Claghorn2015-05-271-30/+30
* add ActiveRecord::Enum testcase about multiple enums declaring at a timekeepcosmos2015-03-051-0/+14
* Error message testing fixFranky W2015-02-201-2/+4
* Mention `where.not` in the exampleGodfrey Chan2015-02-141-0/+4
* Fixed a bug where NULLs are casted into the first enum valueGodfrey Chan2015-02-131-3/+8
* Partially revert ae33aeaGodfrey Chan2015-02-131-4/+0
* Break up these testsGodfrey Chan2015-02-131-4/+23
* oops, 'format' is not a real enumGodfrey Chan2015-02-131-8/+8
* Enums should be referred to by symbolsGodfrey Chan2015-02-131-1/+14
* Refactor enum to be defined in terms of the attributes APISean Griffin2015-02-111-1/+16
* Enums shouldn't ruin people's anniversariesGodfrey Chan2014-09-041-1/+2
* Follow up to bbe7fe41 to fix enum leakage across classes.Godfrey Chan2014-04-071-7/+28
* make enums distinct per classEvan Whalen2014-04-071-0/+15
* Block a few default Class methods as scope name.Arthur Neves2014-04-031-0/+1
* Fix a bug affecting validations of enum attributesTheMonster2014-02-271-0/+27
* Remove unused variable.Tim Fenney2014-01-311-1/+1
* `enum` now raises on "dangerous" name conflictsGodfrey Chan2014-01-291-0/+59
* Remove unused assignment to fix warnings in enum test.Vipul A M2014-01-241-1/+0
* Add more tests for the dirty feature for enumsRafael Mendonça França2014-01-211-0/+32
* Make enum feature work with dirty methodsRafael Mendonça França2014-01-211-0/+40
* Enum mappings are now exposed via class methods instead of constants.Godfrey Chan2014-01-141-3/+3
* use enum labels as form values. Achieved by `_before_type_cast`.Yves Senn2014-01-111-0/+4
* Building new records with enum scopes now works as expectedGodfrey Chan2014-01-031-6/+7
* Fix the enums writer methodsRobin Dupret2014-01-011-1/+10
* Add the ability to nullify the `enum` columnAmr Tamimi2014-01-011-0/+15
* bring back constant to expose the enum mapping as HWIA.Yves Senn2013-11-061-0/+6