aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
Commit message (Expand)AuthorAgeFilesLines
* 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
* | Eager loading/preloading should be worked regardless of large number of recordsRyuta Kamizono2018-09-121-0/+1
* | Fix regression setting children record in parent before_save callback.Guo Xiang Tan2018-09-032-0/+12
* | Permit list usage cleanup and clearer documentationKevin Deisz2018-08-271-1/+1
* | Convert over the rest of the whitelist referencesKevin Deisz2018-08-241-1/+1
* | Fix numericality validator not to be affected by custom getterRyuta Kamizono2018-08-131-0/+8
* | Call build when extend with nested attributes definedAlireza Bashiri2018-08-021-1/+7
|/
* Avoid extra scoping in delegating to klass methods in the `scope` blockRyuta Kamizono2018-07-191-0/+1
* Ensure to calculate column aliases after all table aliases are constructedRyuta Kamizono2018-06-191-3/+4
* Fix `touch` option to behave consistently with `Persistence#touch` methodRyuta Kamizono2018-06-182-1/+3
* Merge pull request #29373 from untidy-hair/store_accessor_enhanceRyuta Kamizono2018-06-131-0/+3
|\
| * Update prefix and allow suffix options for store accessorsYukio Mizuta2018-06-121-0/+3
* | Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-0/+10
* | Reuse existing model for testing duplicated children recordsRyuta Kamizono2018-06-072-5/+1
* | Merge pull request #32952 from mechanicles/32940-fixRyuta Kamizono2018-05-292-0/+6
|\ \
| * | Fix parent record should not get saved with duplicate children recordsSantosh Wadghule2018-05-282-0/+6
| |/