..
admin
Fix tracking previous changes for ActiveRecord::Store accessors with underlying JSON data column
2023-08-07 22:26:45 -04:00
autoloadable
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
cpk
Fix predicate builder for polymorphic models referencing models with composite primary keys
2023-12-10 15:26:23 +02:00
publisher
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
sharded
Fix polymorphic `belongs_to` to correctly use parent's `query_constraints`
2023-12-10 22:04:05 +02:00
account.rb
Ensure Contextual validations fire on associations
2019-10-04 12:17:53 +01:00
admin.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
aircraft.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
arunit2_model.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
attachment.rb
Fix error when saving an association with a relation named record
2022-01-17 21:46:54 +01:00
author.rb
This fix corrects the logic in both the associated and missing methods. If the reflection.options hash has a key/value pair for :class_name it will use the association. This fixes 48651 which was not returning the correct value when using an enum association and querying for a record that had one key of the enum but was missing another. This also fixes 44964 where ActiveRecord was not properly aliasing self-referencing relations. If the reflection.options doesn’t contain the key/value pair then it will use the reflection.table_name. This fixes 47909 in which a user was trying to find records that were either missing a relation or were missing a relation that was ordered or unscoped or were missing a relation that was using extends in the query which resulted in an ActiveRecord Exception. It also allows for using extends in any of these capacities.
2023-08-02 11:47:13 -04:00
author_encrypted.rb
Add support for uniqueness validations
2021-04-01 15:02:15 +02:00
auto_id.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
binary.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
bird.rb
Revert "Merge pull request #35186 from kamipo/fix_leaking_scope_on_relation_create"
2019-02-15 12:06:45 +09:00
book.rb
Infer `foerign_key` when `inverse_of` is present ( #47797 )
2023-03-30 15:22:23 -04:00
book_destroy_async.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
book_encrypted.rb
Merge pull request #48462 from iamradioactive/remove_additional_query
2023-09-25 13:50:07 +02:00
boolean.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
branch.rb
Fix has_many inversing recursion on models with recursive associations
2021-11-05 12:15:12 -04:00
bulb.rb
Implicit scoping does no longer leak scope to class level querying methods
2020-10-30 00:25:38 +00:00
cake_designer.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
car.rb
Fix decrementing counter caches for parent records using optimistic locking
2023-05-30 02:17:37 +03:00
carrier.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
cart.rb
Don't over protect the MySQL users on insert_all
2020-11-04 20:26:22 +00:00
cat.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
categorization.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
category.rb
Fix joining through a polymorphic association
2021-10-06 18:04:44 +02:00
chat_message.rb
[Tests only] Populate auto-generated UUID primary key
2023-05-15 21:20:01 +00:00
chef.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
citation.rb
Fix has_many_inversing with touch: true on a belongs_to association with inverse
2021-01-07 22:15:24 +00:00
clothing_item.rb
Respect explicitly configured `query_constraints`
2023-03-30 15:15:46 +00:00
club.rb
Fix has_many through association assginments with custom scope and custom joining association name
2023-03-01 17:56:03 +00:00
college.rb
Removes require_dependency from the AR test suite
2020-05-06 09:01:38 +02:00
column.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
column_name.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
comment.rb
Do not use `alias_attribute` to alias an association
2023-07-24 14:45:09 +00:00
comment_overlapping_counter_cache.rb
Fix counter_cache create/concat with overlapping counter_cache_column
2023-07-13 12:06:08 +02:00
company.rb
Infer `foerign_key` when `inverse_of` is present ( #47797 )
2023-03-30 15:22:23 -04:00
company_in_module.rb
Enable `Layout/EmptyLinesAroundAccessModifier` cop
2019-06-13 12:00:45 +09:00
computer.rb
Fix regression blocking creation of some strict association
2023-08-21 10:32:08 -07:00
contact.rb
Deduplicate various Active Record schema cache structures
2019-06-03 13:31:42 +02:00
content.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
contract.rb
Ensure Contract#metadata is reliably orderable
2022-02-26 03:39:02 +10:30
country.rb
`create_table` with `:primary_key` option has no effect if `id: false` is given
2018-10-27 22:57:16 +09:00
course.rb
Removes require_dependency from the AR test suite
2020-05-06 09:01:38 +02:00
cpk.rb
Fix predicate builder for polymorphic models referencing models with composite primary keys
2023-12-10 15:26:23 +02:00
customer.rb
Clarify `composed_of` allows a Hash for `mapping`
2022-08-23 15:57:54 -03:00
customer_carrier.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
dashboard.rb
Revert "Refactor uncastable through reflection test to detect join key overrides"
2020-09-25 17:49:52 -04:00
default.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
department.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
destroy_async_parent.rb
Update primary key for dl_keyed_join
2022-05-18 11:04:15 -07:00
destroy_async_parent_soft_delete.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
developer.rb
Make the output of `ActiveRecord::Core#inspect` configurable.
2023-11-08 14:23:16 -05:00
discount.rb
Reproduce the preloader regression in #41596
2021-03-15 12:36:21 -07:00
dl_keyed_belongs_to.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
dl_keyed_belongs_to_soft_delete.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
dl_keyed_has_many.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
dl_keyed_has_many_through.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
dl_keyed_has_one.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
dl_keyed_join.rb
Destroy associations in a background job.
2020-09-24 14:24:15 -04:00
dog.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
dog_lover.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
doubloon.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
drink_designer.rb
Polymorphic has_one touch: Reset association cache result after create transaction
2019-07-31 05:59:23 +02:00
edge.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
editor.rb
Ensure `reload` sets correct owner for each association
2023-11-18 15:59:09 +02:00
editorship.rb
Ensure `reload` sets correct owner for each association
2023-11-18 15:59:09 +02:00
electron.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
engine.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
entrant.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
entry.rb
Delegated Type supports customizeable foreign_type column
2023-03-14 09:19:30 -04:00
essay.rb
Merge PR #43389
2021-12-20 22:47:24 +00:00
essay_destroy_async.rb
Handle STI models for has_many dependent: :destroy_async
2021-01-06 02:04:23 +01:00
event.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
eye.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
face.rb
Clean up checks to see if DidYouMean is defined
2021-07-04 13:43:50 +02:00
family.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
family_tree.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
friendship.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
frog.rb
Merge pull request #30956 from CJStadler/with-lock-changed-deprecation
2018-03-28 13:11:01 -04:00
guid.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
guitar.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
hardback.rb
Fix assigning through records when using polymorphic has many through association
2023-02-28 17:56:56 +00:00
hotel.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
human.rb
Infer `foerign_key` when `inverse_of` is present ( #47797 )
2023-03-30 15:22:23 -04:00
image.rb
`:polymorphic`, `:as`, and `:foreign_type` are valid for polymorphic association
2019-11-10 10:54:58 +09:00
interest.rb
Replace test `Man` with `Human`
2020-08-14 11:37:09 -04:00
invoice.rb
Deprecates `Enumerable#sum` and `Array#sum`
2021-05-03 10:26:39 -07:00
invokes_an_undefined_method.rb
Delete AS::Dependencies.safe_constantize
2021-08-20 17:51:05 +02:00
item.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
job.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
joke.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
keyboard.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
legacy_thing.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
lesson.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
line_item.rb
Reproduce the preloader regression in #41596
2021-03-15 12:36:21 -07:00
liquid.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
matey.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
measurement.rb
This PR adds support to retrieve partitioned indexes when asking for
2020-02-06 07:36:44 +02:00
member.rb
Fix disable_joins when using an enum STI type
2021-06-24 14:30:00 -04:00
member_detail.rb
Using existing models for building multiple has_one through tests
2018-04-22 04:16:44 +09:00
member_type.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
membership.rb
Fix has_one through singular building with inverse.
2023-07-05 23:22:51 -05:00
mentor.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
message.rb
Fix touching has_one grandparent associations
2022-11-05 22:09:40 -03:00
minimalistic.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
minivan.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
mixed_case_monkey.rb
Replace test `Man` with `Human`
2020-08-14 11:37:09 -04:00
molecule.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
mouse.rb
Don't validate non dirty association targets
2019-07-15 18:21:20 +01:00
movie.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
need_quoting.rb
Properly quote autogenerated column aliases
2021-12-17 12:29:11 +01:00
node.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
non_primary_key.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
notification.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
numeric_data.rb
Fix `read_attribute_before_type_cast` to consider attribute aliases
2020-10-18 20:32:47 -03:00
order.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
organization.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
other_dog.rb
Removes require_dependency from the AR test suite
2020-05-06 09:01:38 +02:00
owner.rb
try using regexes
2017-11-09 22:42:15 +10:30
paragraph.rb
Optimize slow tests in activerecord
2023-03-13 14:07:28 +02:00
parrot.rb
Use reflection_class in TableRow for fixtures
2021-11-25 17:44:14 -03:00
person.rb
Allow to define the default column serializer
2023-02-22 19:32:28 +01:00
personal_legacy_thing.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
pet.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
pet_treasure.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
pirate.rb
Infer `foerign_key` when `inverse_of` is present ( #47797 )
2023-03-30 15:22:23 -04:00
pk_autopopulated_by_a_trigger_record.rb
Always request `primary_key` in `RETURNING` if no other columns requested
2024-01-17 18:19:40 +00:00
possession.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
post.rb
fix infinite recursion with foreign_key
2023-04-07 10:42:34 -07:00
post_encrypted.rb
Don't require encryption credentials when using a custom key provider
2022-02-24 20:03:01 +10:30
post_with_prefetched_pk.rb
Fix issue with wrong argument type when using prefetch_primary_key?
2023-11-10 19:40:43 +00:00
price_estimate.rb
Fix numericality validator not to be affected by custom getter
2018-08-13 23:28:46 +09:00
professor.rb
Removes require_dependency from the AR test suite
2020-05-06 09:01:38 +02:00
project.rb
Fix disable_joins when foreign key is not ID
2021-06-10 16:29:34 -04:00
publication.rb
Ensure `reload` sets correct owner for each association
2023-11-18 15:59:09 +02:00
publisher.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
raises_argument_error.rb
Delete AS::Dependencies.safe_constantize
2021-08-20 17:51:05 +02:00
raises_no_method_error.rb
Delete AS::Dependencies.safe_constantize
2021-08-20 17:51:05 +02:00
randomly_named_c1.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
rating.rb
Maintain extra joins for string or complex arel conditions
2019-10-04 13:29:18 +09:00
reader.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
recipe.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
recipient.rb
Fix touching has_one grandparent associations
2022-11-05 22:09:40 -03:00
record.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
reference.rb
chore: fix spelling change `favourite` to the more used `favorite`
2021-04-12 12:35:12 +10:00
reply.rb
Implement `marshal_dump` and `marshal_load` on ActiveRecord::Base
2023-03-28 16:46:14 +02:00
room.rb
Fixed odd behavior of inverse_of with multiple belongs_to to same class
2020-11-21 02:06:21 +09:00
section.rb
Fix circular `autosave: true`
2018-07-23 14:53:27 -07:00
seminar.rb
Fix circular `autosave: true`
2018-07-23 14:53:27 -07:00
session.rb
Fix circular `autosave: true`
2018-07-23 14:53:27 -07:00
sharded.rb
Fix precedence of `primary_key:` in associations with `query_constraints`
2023-03-23 23:01:06 +00:00
ship.rb
Infer `foerign_key` when `inverse_of` is present ( #47797 )
2023-03-30 15:22:23 -04:00
ship_part.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
shipping_line.rb
Reproduce the preloader regression in #41596
2021-03-15 12:36:21 -07:00
shop.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
shop_account.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
speedometer.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
sponsor.rb
Make `reflection.klass` raise if `polymorphic?` not to be misused
2018-02-19 00:11:29 +09:00
squeak.rb
Don't validate non dirty association targets
2019-07-15 18:21:20 +01:00
strict_zine.rb
Ignore strict loading violations on instances loaded through fixtures
2020-12-10 15:23:14 -06:00
string_key_object.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
student.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
subscriber.rb
Revert "Refactor uncastable through reflection test to detect join key overrides"
2020-09-25 17:49:52 -04:00
subscription.rb
Automatically infer inverse_of with scopes
2021-10-04 09:42:04 -04:00
tag.rb
Fix newly added reflection order when redefining association
2018-01-04 22:55:16 +09:00
tagging.rb
Don't update counter cache when through record was not destroyed
2018-01-14 20:46:19 +00:00
task.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
too_long_table_name.rb
Fix a bug where using groups and counts with long table names would return incorrect results.
2022-10-20 16:15:45 +09:00
topic.rb
Call proxy methods from `alias_attribute` generated methods
2023-07-17 22:22:28 +00:00
toy.rb
Fix has_many_inversing with touch: true on a belongs_to association with inverse
2021-01-07 22:15:24 +00:00
traffic_light.rb
Allow to define the default column serializer
2023-02-22 19:32:28 +01:00
traffic_light_encrypted.rb
Change ActiveRecord::Coders::YAMLColumn default to safe_load
2022-07-12 09:26:46 -07:00
translation.rb
Fix error when saving an association with a relation named record
2022-01-17 21:46:54 +01:00
treasure.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
treaty.rb
`create_table` with `:primary_key` option has no effect if `id: false` is given
2018-10-27 22:57:16 +09:00
tree.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
tuning_peg.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
tyre.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
user.rb
Add authenticate_by when using has_secure_password
2021-12-03 10:06:43 -06:00
user_with_invalid_relation.rb
Rework association model class error messages
2022-12-02 15:59:25 -06:00
uuid_child.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
uuid_comment.rb
Allow delegated_type to be specified primary_key and foreign_key
2020-12-18 15:06:16 +09:00
uuid_entry.rb
Allow delegated_type to be specified primary_key and foreign_key
2020-12-18 15:06:16 +09:00
uuid_item.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
uuid_message.rb
Allow delegated_type to be specified primary_key and foreign_key
2020-12-18 15:06:16 +09:00
uuid_parent.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
vegetables.rb
move ActiveRecord::Persistance#becomes logic into initialize block
2020-09-20 10:24:19 -06:00
vertex.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
warehouse_thing.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
wheel.rb
Fix `touch` option to behave consistently with `Persistence#touch` method
2018-06-18 19:08:41 +09:00
without_table.rb
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
zine.rb
Infer `foerign_key` when `inverse_of` is present ( #47797 )
2023-03-30 15:22:23 -04:00