aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
Commit message (Expand)AuthorAgeFilesLines
...
* | | save attributes changed by callbacks after update_attributeMike Busch2017-12-221-0/+7
* | | Fix conflicts `counter_cache` with `touch: true` by optimistic locking.bogdanvlviv2017-12-121-1/+1
* | | Inverse instance should not be reloaded during autosave if called in validationAnmol Chopra2017-11-271-0/+4
* | | try using regexesBen Toews2017-11-097-21/+17
* | | allow table name and direction in string order argBen Toews2017-11-099-25/+29
* | | work around deprecation warnings in a bunch of testsBen Toews2017-11-0914-42/+46
* | | `scoping` should respect current class and STI constraint (#29199)Ryuta Kamizono2017-11-061-0/+4
* | | delegate scope forpavel2017-10-274-0/+5
* | | Place `MocktailDesigner` in `test/models/drink_designer.rb`Ryuta Kamizono2017-10-232-4/+3
* | | Convert ignored_columns to a list of stringAltech2017-10-201-0/+8
* | | Test `ignored_columns` value is inheritable by subclassesRyuta Kamizono2017-10-191-0/+3
* | | Joined tables in association scope doesn't use the same aliases with the pare...Ryuta Kamizono2017-10-091-0/+1
* | | Add test case for `arel_attribute` with a custom tableRyuta Kamizono2017-09-271-1/+1
* | | `has_many :through` with unscope should affect to through scopeRyuta Kamizono2017-09-071-0/+1
* | | Scope in associations should treat nil as `all`Ryuta Kamizono2017-09-041-1/+1
* | | `values[:includes]` in `reflection_scope` is not compatible with `through_scope`Ryuta Kamizono2017-09-021-1/+1
* | | `counter_cache` requires association class before `attr_readonly`Yasuo Honda2017-08-231-0/+3
* | | Clarify base_class tests on abstract STI vs concrete STIYukio Mizuta2017-08-121-1/+6
* | | Merge pull request #29848 from kamipo/fix_distinct_count_with_order_and_limitRafael França2017-07-242-34/+35
|\ \ \
| * | | Extract `Account` model to the dedicated fileRyuta Kamizono2017-07-222-34/+35
* | | | Merge pull request #29765 from lugray/fix_counter_cacheRafael França2017-07-241-0/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Add test for fixed `counter_cache` double incrementLisa Ugray2017-07-191-0/+6
* | | | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-19144-10/+298
|/ / /
* | | Fix unscoping `default_scope` in STI associationsRyuta Kamizono2017-07-191-0/+1
* | | Remove deprecated code concerning non-attributes and `*_will_change!`Sean Griffin2017-07-181-1/+1
* | | Merge pull request #29679 from kamipo/add_test_case_for_27724Kasper Timm Hansen2017-07-151-0/+5
|\ \ \
| * | | Add a test case for overwriting existing condition on associationsRyuta Kamizono2017-07-071-0/+5
* | | | Extract `FakeKlass` in `relation_test.rb` and `relation/mutation_test.rb`Ryuta Kamizono2017-07-111-0/+32
|/ / /
* | | Fix preloading association with scope including joinsRyuta Kamizono2017-07-042-0/+3
* | | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-02144-154/+10
* | | Enforce frozen string in RubocopKir Shatrov2017-07-01144-10/+154
* | | Merge pull request #29416 from kamipo/remove_unused_subject_modelRafael França2017-06-281-14/+0
|\ \ \
| * | | Remove unused `Subject` model in testsRyuta Kamizono2017-06-111-14/+0
* | | | Merge pull request #29405 from kamipo/locked_should_not_build_arelRafael França2017-06-281-0/+1
|\ \ \ \
| * | | | Remove delegating to arel in a relationRyuta Kamizono2017-06-291-0/+1
* | | | | Ensure that using correct alias trackerRyuta Kamizono2017-06-251-0/+1
|/ / / /
* / / / Remove unused defined associationRyuta Kamizono2017-06-111-1/+0
|/ / /
* | | Correct a has_many association testKoichi ITO2017-06-011-0/+1
* | | Merge pull request #26634 from kamipo/extract_numeric_dataRafael França2017-05-311-0/+8
|\ \ \
| * | | Restore the override of numeric attributes properlyRyuta Kamizono2016-12-221-0/+5
| * | | Extract `NumericData` model for testsRyuta Kamizono2016-09-271-0/+3
* | | | Add missing `delegate :extending, to: :all`Ryuta Kamizono2017-06-011-0/+2
* | | | Merge pull request #29098 from kamipo/fix_association_with_extension_issuesMatthew Draper2017-05-302-1/+11
|\ \ \ \
| * | | | Fix association with extension issuesRyuta Kamizono2017-05-282-1/+11
* | | | | Merge pull request #28969 from kamipo/refactor_enum_to_use_value_instead_of_l...Matthew Draper2017-05-281-1/+1
|\ \ \ \ \
| * | | | | Refactor enum to use `value` instead of `label` in the scopeRyuta Kamizono2017-05-071-1/+1
| |/ / / /
* | | | | Merge pull request #29003 from kamipo/delegate_ast_and_locked_to_arel_explicitlyMatthew Draper2017-05-281-0/+9
|\ \ \ \ \
| * | | | | Delegate `ast` and `locked` to `arel` explicitlyRyuta Kamizono2017-05-061-0/+9
| |/ / / /
* / / / / Enable extending even if scope returns nilRyuta Kamizono2017-05-241-1/+1
|/ / / /
* | | | Add type caster to `RuntimeReflection#alias_name`Jon Moss2017-05-022-1/+2