aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
Commit message (Expand)AuthorAgeFilesLines
* Namespace association extension modules under the owner modelJean Boussier2019-05-021-8/+8
* Make scope arity check consistent (#36134)Rob Trame2019-05-011-0/+1
* Fix merging left_joins to maintain its own `join_type` contextRyuta Kamizono2019-04-271-0/+1
* Merge pull request #32313 from lulalala/model_error_as_objectRafael França2019-04-241-6/+6
|\
| * Raise deprecation for calling `[:f] = 'b'` or `[:f] << 'b'`lulalala2019-03-311-6/+6
* | Merge pull request #35869 from abhaynikam/35866-add-touch-option-for-has-one-...Ryuta Kamizono2019-04-251-1/+3
|\ \
| * | Adds touch option to has_one associationAbhay Nikam2019-04-251-1/+3
* | | Avoid redundant `attribute_alias?` before `attribute_alias`Ryuta Kamizono2019-04-241-2/+2
|/ /
* | Fix `automatic_inverse_of` not to be disabled if extension block is givenRyuta Kamizono2019-04-121-0/+4
* | Revert "Remove unused callbacks in the `Topic` model"Ryuta Kamizono2019-04-101-0/+4
* | Remove unused callbacks in the `Topic` modelRyuta Kamizono2019-04-101-4/+0
* | Merge pull request #28155 from lcreid/belongs_toRyuta Kamizono2019-04-103-0/+18
|\ \
| * | Fix circular `autosave: true`Larry Reid2018-07-233-0/+18
* | | There is no need to check `null_relation?` in `empty_scope?`Ryuta Kamizono2019-04-061-0/+4
| |/ |/|
* | Add Relation#annotate for SQL commentingMatt Yoho2019-03-211-0/+16
* | Fixed reselect throwing NoMethodError on ActiveRecord.Abhay Nikam2019-03-031-0/+6
* | Use the correct model in the testRafael Mendonça França2019-03-011-1/+1
* | Use dedicated `Topic` model for `SerializedAttributeTest`Ryuta Kamizono2019-02-281-4/+0
* | Allow returning nil for `default_scope`Ryuta Kamizono2019-02-281-0/+1
* | Fix test that was broken by adding a default scope to an existing modelRafael Mendonça França2019-02-262-0/+8
* | Fix preload with nested associationsRafael Mendonça França2019-02-261-0/+2
* | Merge pull request #35327 from abhaynikam/use-delete-by-and-destroy-by-methodRyuta Kamizono2019-02-201-1/+1
|\ \
| * | Replaced usage of where.delete/destroy_all with delete/destroy_byAbhay Nikam2019-02-201-1/+1
* | | Merge pull request #35247 from bogdan/fix-source-reflection-reset-codeRyuta Kamizono2019-02-201-0/+1
|\ \ \ | |/ / |/| |
| * | Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-201-0/+1
* | | Fix eager loading polymorphic association with mixed table conditionsRyuta Kamizono2019-02-181-0/+1
* | | Fix `order` with custom attributesRyuta Kamizono2019-02-171-0/+4
* | | Revert "Merge pull request #35186 from kamipo/fix_leaking_scope_on_relation_c...Ryuta Kamizono2019-02-151-2/+2
* | | Revert "Chaining named scope is no longer leaking to class level querying met...Ryuta Kamizono2019-02-142-3/+2
* | | Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-133-1/+10
|/ /
* | Fix `relation.create` to avoid leaking scope to initialization block and call...Ryuta Kamizono2019-02-071-0/+5
* | Chaining named scope is no longer leaking to class level querying methodsRyuta Kamizono2019-02-061-0/+7
* | Add regression test for has_many through record creationRyuta Kamizono2019-02-011-0/+2
* | Remove unused codebogdanvlviv2019-01-301-8/+0
* | Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-181-0/+1
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-152-0/+11
* | Don't treat begin and rollback transactions as write queriesRyuta Kamizono2018-12-111-0/+5
* | Merge pull request #34572 from kamipo/fix_scoping_with_query_methodRyuta Kamizono2018-11-301-0/+1
|\ \
| * | Fix the scoping with query methods in the scope blockRyuta Kamizono2018-11-301-0/+1
* | | Merge pull request #34528 from DmitryTsepelev/fix-ignored-attributesRafael França2018-11-271-0/+14
|\ \ \ | |/ / |/| |
| * | Cached columns_hash fields should be excluded from ResultSet#column_typesDmitryTsepelev2018-11-271-0/+14
* | | More exercise singular association queryRyuta Kamizono2018-11-281-1/+1
|/ /
* | Fix inspect with non-primary key id attributeEugene Kenny2018-11-061-0/+4
* | Exercise HABTM fixtures with foreign key constraintsRyuta Kamizono2018-10-301-0/+6
* | `create_table` with `:primary_key` option has no effect if `id: false` is givenRyuta Kamizono2018-10-272-4/+0
* | Generate delegation methods to named scope in the definition timeRyuta Kamizono2018-10-092-5/+16
* | Change the empty block style to have space inside of the blockRafael Mendonça França2018-09-252-2/+2
* | Avoid the same `foreign_key` and `counter_cache` associations on `SillyReply`Ryuta Kamizono2018-09-191-4/+4
* | Merge pull request #33378 from numbata/subclass-redefine-autosave-callbacksRafael Mendonça França2018-09-131-0/+6
|\ \
| * | Allow subclasses to redefine autosave callbacks for associated recordsAndrey Subbota2018-07-271-0/+6
| |/