rails/activerecord/test/fixtures
Paarth Madan 3d820195a0 Support fixture associations for composite models
Most of the support here is in implementing how to correctly substitute
multiple values in place of one, for composite caes. In composite cases,
it's not sufficient to hash a label into a single integer value.
Instead, we build an API that accepts a single label, and a list of
columns that we'd like to map to. The algorithm used internally is very
similar to #identify, with an additional bit shift and modulo to cycle
the hash and ensure it doesn't exceed a max.
2023-04-14 18:12:18 -04:00
..
admin Fix backward compatibility with stored Hash values. Wrap coders to convert serialized values to indifferent access. 2012-05-30 23:21:57 -07:00
all remove duplicated fixture set names 2016-09-12 08:14:10 +09:00
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 load fixtures from linked folders 2013-08-05 16:35:49 -03:00
1_need_quoting.yml Properly quote autogenerated column aliases 2021-12-17 12:29:11 +01:00
accounts.yml Fix ActiveRecord grouped calculations on joined tables on column present in both tables 2023-01-07 21:56:13 +02:00
author_addresses.yml Fix test_find_with_order_on_included_associations_with_construct_finder_sql_for_association_limiting_and_is_distinct to NULL-agnostic way 2015-12-19 17:38:42 +09:00
author_favorites.yml
authors.yml Fix test_find_with_order_on_included_associations_with_construct_finder_sql_for_association_limiting_and_is_distinct to NULL-agnostic way 2015-12-19 17:38:42 +09:00
bad_posts.yml Merge pull request #20574 from repinel/fix-db-fixtures-load 2015-09-30 11:06:41 +02:00
binaries.yml Add binary helper method to fixtures. 2017-08-12 18:35:32 +09:00
books.yml Add tests for enum with strings 2021-10-25 13:34:28 -04:00
bulbs.yml make it possible to access fixtures excluded by a default_scope. 2014-11-21 14:57:25 +01:00
cake_designers.yml Fix: Inconsistent Polymorphic Association Autosave 2022-09-15 13:24:19 +10:00
cars.yml
categories_ordered.yml fixing 1.8 support for new fixture tests 2011-05-23 15:06:13 -07:00
categories_posts.yml Fix joins that reserved word association is referenced in where 2021-01-18 16:24:22 +09:00
categories.yml
categorizations.yml
chefs.yml Fix: Inconsistent Polymorphic Association Autosave 2022-09-15 13:24:19 +10:00
citations.yml Lazy checking whether or not values in IN clause are boundable 2018-10-24 11:26:49 +09:00
clothing_items.yml Configure query_constraints_list to use primary_key by default 2022-11-21 22:21:55 +00:00
clubs.yml Replace ableist language 2021-10-05 22:27:09 -04:00
collections.yml
colleges.yml added test for #3732 2012-02-10 17:35:22 -05:00
comments.yml Fix where.missing and where.associated for parent/child associations 2022-05-04 12:37:52 +03: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_positions.yml Add support for bidirectional destroy dependencies 2015-01-16 11:41:43 +00:00
content.yml Add support for bidirectional destroy dependencies 2015-01-16 11:41:43 +00:00
courses.yml added test for #3732 2012-02-10 17:35:22 -05:00
cpk_authors.yml Support deleting records from associations for CPK 2023-04-12 17:53:20 -04:00
cpk_books.yml Support fixture associations for composite models 2023-04-14 18:12:18 -04:00
cpk_order_agreements.yml Support fixture associations for composite models 2023-04-14 18:12:18 -04:00
cpk_orders.yml Fix fixtures id generation for composite primary keys 2023-03-10 21:27:39 +00:00
cpk_reviews.yml Support fixture associations for composite models 2023-04-14 18:12:18 -04:00
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 Fixes #18492 2015-01-14 21:36:58 +05:30
developers_projects.yml
developers.yml Ensure HABTM relationships produce valid class names (Fixes #17119) 2014-11-09 11:56:07 -06:00
dog_lovers.yml Update other counter caches on destroy 2013-03-20 13:43:07 -07:00
dogs.yml Update other counter caches on destroy 2013-03-20 13:43:07 -07:00
doubloons.yml Fix crash when loading fixture with belongs_to association defined in abstract base class. 2015-06-04 12:38:00 -04:00
drink_designers.yml Fix: Inconsistent Polymorphic Association Autosave 2022-09-15 13:24:19 +10:00
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 fk: use random digest names 2014-06-26 22:03:49 +02:00
friendships.yml Refactor Person/Friendship relationships to be more intuitive 2013-03-17 02:11:19 -04:00
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 Fixes #18492 2015-01-14 21:36:58 +05:30
mateys.yml Rename "Fixtures" class to "FixtureSet" 2012-10-07 19:15:58 +02:00
member_details.yml
member_types.yml
members.yml
memberships.yml Make #to_fs the default replacement for #to_s(:format) 2022-02-07 12:41:21 +01: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 Add pending test for the great-grandparent touching bug from #19324 2015-06-25 14:23:06 +02:00
organizations.yml
other_books.yml Allow specify fixtures to be ignored 2019-07-27 16:40:16 +08:00
other_comments.yml Merge pull request #20574 from repinel/fix-db-fixtures-load 2015-09-30 11:06:41 +02:00
other_dogs.yml fix #create_fixtures when equal table names in different databases 2016-12-21 11:09:29 +01:00
other_posts.yml Resolve attribute alias for counter cache column 2020-07-06 12:06:01 +09:00
other_topics.yml Fix a fixtures test case with table prefix/suffix 2011-12-27 02:17:31 +01:00
owners.yml Extend ActiveRecord::Base#cache_key to take an optional list of timestamp attributes of which the highest will be used. 2013-11-02 16:05:19 -07:00
paragraphs.yml Optimize slow tests in activerecord 2023-03-13 14:07:28 +02:00
parrots_pirates.yml Rename "Fixtures" class to "FixtureSet" 2012-10-07 19:15:58 +02:00
parrots.yml Use reflection_class in TableRow for fixtures 2021-11-25 17:44:14 -03:00
people.yml Refactor Person/Friendship relationships to be more intuitive 2013-03-17 02:11:19 -04:00
peoples_treasures.yml Rename "Fixtures" class to "FixtureSet" 2012-10-07 19:15:58 +02:00
pets.yml has_many through obeys order on through association 2013-04-04 15:45:13 -04:00
pirates.yml Make #to_fs the default replacement for #to_s(:format) 2022-02-07 12:41:21 +01:00
posts.yml Resolve attribute alias for counter cache column 2020-07-06 12:06:01 +09:00
price_estimates.yml Fixed where for polymorphic associations when passed an array containing different types. 2016-02-16 10:41:26 -08:00
products.yml
projects.yml
randomly_named_a9.yml Test fixtures with custom model and table names 2011-12-30 10:34:01 +01:00
ratings.yml Revert "Merge pull request #14544 from jefflai2/named_scope_sti" 2014-05-21 12:15:57 -03:00
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
sharded_blog_posts_tags.yml Support has_many through associations with composite query_constraints 2023-02-22 00:01:22 +00:00
sharded_blog_posts.yml Associations::Preloader supports preloading associations with composite keys 2023-02-16 16:17:17 +00:00
sharded_blogs.yml Support composite foreign keys in associations 2023-01-31 17:46:41 +00:00
sharded_comments.yml Allow querying by whole record for composite query constraints associations 2023-03-16 17:02:50 +00:00
sharded_tags.yml Support has_many through associations with composite query_constraints 2023-02-22 00:01:22 +00:00
ships.yml
speedometers.yml
sponsors.yml Replace ableist language 2021-10-05 22:27:09 -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 Don't quote ID's as Arel will quote them -- follow same conventions as the delete method. 2011-05-08 18:37:28 +01:00
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 Configure query_constraints_list to use primary_key by default 2022-11-21 22:21:55 +00:00
toys.yml has_many through obeys order on through association 2013-04-04 15:45:13 -04:00
traffic_lights.yml test case for serialize default values. 2013-03-07 17:26:35 +01:00
treasures.yml
trees.yml Add pending test for the great-grandparent touching bug from #19324 2015-06-25 14:23:06 +02:00
uuid_children.yml Auto-generate stable fixture UUIDs on PostgreSQL. 2014-01-07 19:05:50 +01:00
uuid_parents.yml Auto-generate stable fixture UUIDs on PostgreSQL. 2014-01-07 19:05:50 +01:00
variants.yml
vegetables.yml rewrite inheritance tests with a custom inheritance_column 2012-09-03 20:30:43 +02:00
vertices.yml
virtual_columns.yml Incorporate feedback 2021-04-29 13:01:39 +02:00
warehouse-things.yml
zines.yml