1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/fixtures
Kevin Newton 006eb25ccd
Raise error on invalid fixture primary key
When you're using a custom primary key on a belongs_to and you're trying to load that value through the association shorthand in a fixture, you end up getting the primary key of the table and not the primary key specified in the join. This makes sense to keep as the behavior because it's super fast (just hashing the name of the fixture), but it's still surprising so we should want the developer that it's not possible to do what they want.
2021-07-14 08:54:38 -04:00
..
admin
all
categories
naked/yml Use bulk INSERT to insert fixtures 2017-06-20 13:18:53 -04:00
primary_key_error Raise error on invalid fixture primary key 2021-07-14 08:54:38 -04:00
reserved_words Quote primary key in the subselect generated by mysql2 adapter 2017-12-19 20:59:09 +09:00
to_be_linked
accounts.yml
author_addresses.yml
author_favorites.yml
authors.yml
bad_posts.yml
binaries.yml Add binary helper method to fixtures. 2017-08-12 18:35:32 +09:00
books.yml Fix pluck to correctly type cast same column names and association columns 2020-05-13 20:24:42 +09:00
bulbs.yml
cars.yml
categories.yml
categories_ordered.yml
categories_posts.yml Fix joins that reserved word association is referenced in where 2021-01-18 16:24:22 +09:00
categorizations.yml
citations.yml Lazy checking whether or not values in IN clause are boundable 2018-10-24 11:26:49 +09:00
clubs.yml
collections.yml
colleges.yml
comments.yml Avoid stack level too deep in predicate builder 2021-02-11 11:32:20 -05:00
companies.yml Avoid stack level too deep in predicate builder 2021-02-11 11:32:20 -05:00
computers.yml Should not fail if mangling enum names collision 2021-01-01 15:03:15 +09:00
content.yml
content_positions.yml
courses.yml
customers.yml Fix expanding an array of composed_of objects which have multiple mappings 2018-01-29 09:24:14 +09:00
dashboards.yml
dead_parrots.yml
developers.yml
developers_projects.yml
dog_lovers.yml
dogs.yml
doubloons.yml
edges.yml
encrypted_book_that_ignores_cases.yml Remove fixed "id" in encrypted book fixtures 2021-04-13 08:55:44 -04:00
encrypted_books.yml Remove fixed "id" in encrypted book fixtures 2021-04-13 08:55:44 -04:00
entrants.yml
essays.yml Replace test Man with Human 2020-08-14 11:37:09 -04:00
faces.yml Replace test Man with Human 2020-08-14 11:37:09 -04:00
fk_object_to_point_to.yml Verify foreign keys after loading fixtures 2021-07-07 15:41:05 -05:00
fk_test_has_fk.yml
fk_test_has_pk.yml
friendships.yml
funny_jokes.yml
humans.yml Replace test Man with Human 2020-08-14 11:37:09 -04:00
interests.yml Replace test Man with Human 2020-08-14 11:37:09 -04:00
items.yml
jobs.yml
legacy_things.yml
live_parrots.yml
mateys.yml
member_details.yml
member_types.yml
members.yml
memberships.yml chore: fix spelling change favourite to the more used favorite 2021-04-12 12:35:12 +10:00
minimalistics.yml Bring back ability to insert zero value on primary key for fixtures (#31795) 2018-01-26 12:42:28 +09:00
minivans.yml
mixed_case_monkeys.yml
mixins.yml
movies.yml
nodes.yml
organizations.yml
other_books.yml Allow specify fixtures to be ignored 2019-07-27 16:40:16 +08:00
other_comments.yml
other_dogs.yml
other_posts.yml Resolve attribute alias for counter cache column 2020-07-06 12:06:01 +09:00
other_topics.yml
owners.yml
parrots.yml Don't like to add extra models/tables/fixtures, use existing those 2021-02-25 11:32:44 +09:00
parrots_pirates.yml
people.yml
peoples_treasures.yml
pets.yml
pirates.yml
posts.yml Resolve attribute alias for counter cache column 2020-07-06 12:06:01 +09:00
price_estimates.yml
products.yml
projects.yml
randomly_named_a9.yml
ratings.yml
readers.yml Fix through association with source/through scope which has joins 2020-05-22 04:05:27 +09:00
references.yml chore: fix spelling change favourite to the more used favorite 2021-04-12 12:35:12 +10:00
ships.yml
speedometers.yml
sponsors.yml Can preload associations through polymorphic associations 2018-04-20 17:28:25 -04:00
strict_zines.yml Ignore strict loading violations on instances loaded through fixtures 2020-12-10 15:23:14 -06:00
string_key_objects.yml
subscribers.yml Correct spelling 2017-02-05 19:00:18 -06:00
subscriptions.yml
taggings.yml
tags.yml
tasks.yml Fix docs to replace http with https in activerecord [ci skip] 2019-08-26 22:34:33 +09:00
topics.yml
toys.yml
traffic_lights.yml
treasures.yml
trees.yml
uuid_children.yml
uuid_parents.yml
variants.yml
vegetables.yml
vertices.yml
warehouse-things.yml
zines.yml