aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
Commit message (Expand)AuthorAgeFilesLines
* 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
* | Remove useless test caseRyuta Kamizono2017-04-261-8/+0
* | Mixin `CollectionProxy::DelegateExtending` after `ClassSpecificRelation`Ryuta Kamizono2017-04-221-0/+5
* | Add a test case for #20802Ryuta Kamizono2017-04-131-0/+1
* | Fix extension method with dirty target in has_many associationsRyuta Kamizono2017-03-201-0/+4
* | Fix inspection behavior when the :id column is not primary keynamusyaka2017-02-091-0/+2
* | Correct spellingBenjamin Fleischer2017-02-051-1/+1
* | Chain scope constraints should respect own table aliasRyuta Kamizono2017-02-013-0/+12
* | Deprecate reflection class name to accept a classKir Shatrov2017-01-091-1/+1
* | Privatize unneededly protected methods in Active RecordAkira Matsuda2017-01-051-3/+1
* | `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
* | Raise error when has_many through is defined before through associationChris Holmes2017-01-041-0/+6
* | Merge pull request #27335 from kamipo/remove_duplicated_model_definitionSean Griffin2017-01-031-0/+3
|\ \