rails--rails/activerecord/test/fixtures
Kir Shatrov 4ee42379cc Use bulk INSERT to insert fixtures
Improves the performance from O(n) to O(1).
Previously it would require 50 queries to
insert 50 fixtures. Now it takes only one query.

Disabled on sqlite which doesn't support multiple inserts.
2017-06-20 13:18:53 -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
reserved_words Improve the derivation of HABTM assocation join table names 2012-06-22 06:27:11 +01:00
to_be_linked load fixtures from linked folders 2013-08-05 16:35:49 -03:00
.gitignore
accounts.yml
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
books.yml Refactor enum to use `value` instead of `label` in the scope 2017-05-07 04:38:31 +09:00
bulbs.yml make it possible to access fixtures excluded by a `default_scope`. 2014-11-21 14:57:25 +01:00
cars.yml
categories.yml
categories_ordered.yml fixing 1.8 support for new fixture tests 2011-05-23 15:06:13 -07:00
categories_posts.yml
categorizations.yml
clubs.yml Add test_has_one_through_has_one_through_with_belongs_to_source_reflection 2010-10-14 13:44:32 +01:00
collections.yml
colleges.yml added test for #3732 2012-02-10 17:35:22 -05:00
comments.yml
companies.yml Ensure AR #second, #third, etc. finders work through associations 2014-01-21 19:35:27 -05:00
computers.yml Ensure HABTM relationships produce valid class names (Fixes #17119) 2014-11-09 11:56:07 -06:00
content.yml Add support for bidirectional destroy dependencies 2015-01-16 11:41:43 +00:00
content_positions.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
customers.yml
dashboards.yml If a has_many goes :through a belongs_to, and the foreign key of the belongs_to changes, then the has_many should be considered stale. 2010-12-23 15:19:18 -08:00
dead_parrots.yml Fixes #18492 2015-01-14 21:36:58 +05:30
developers.yml Ensure HABTM relationships produce valid class names (Fixes #17119) 2014-11-09 11:56:07 -06:00
developers_projects.yml
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
edges.yml
entrants.yml
essays.yml Support for :primary_key option on the source reflection of a through association, where the source is a has_one or has_many 2010-10-19 14:14:06 +01:00
faces.yml
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
interests.yml
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 If a has_many goes :through a belongs_to, and the foreign key of the belongs_to changes, then the has_many should be considered stale. 2010-12-23 15:19:18 -08:00
memberships.yml Don't use select() values from the join model of a through association. Fixes #508. 2011-05-11 08:56:01 +01:00
men.yml
minimalistics.yml
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_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 Merge pull request #20574 from repinel/fix-db-fixtures-load 2015-09-30 11:06:41 +02: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
parrots.yml properly reference yml alias nodes 2011-05-24 11:18:28 +02:00
parrots_pirates.yml Rename "Fixtures" class to "FixtureSet" 2012-10-07 19:15:58 +02: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 Fix lookup of fixtures with non-string label 2015-01-06 17:15:39 +05:30
posts.yml Deprecate automatic counter caches on has_many :through 2014-06-26 07:24:34 -06: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 Prevent Relation#merge from collapsing wheres on the RHS 2013-01-27 20:34:52 +00:00
references.yml
ships.yml has_one should always remove the old record (properly), even if not saving the new record, so we don't get the database into a pickle 2011-01-11 13:45:06 -08:00
speedometers.yml If a has_many goes :through a belongs_to, and the foreign key of the belongs_to changes, then the has_many should be considered stale. 2010-12-23 15:19:18 -08:00
sponsors.yml we should have unique sponsorable ids in the fixtures at least 2013-10-14 15:27:49 -07: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 Add a test for STI on the through where the through is nested, and change the code which support this 2011-03-05 20:10:24 +00:00
tags.yml Properly support conditions on any of the reflections involved in a nested through association 2010-10-19 00:27:40 +01:00
tasks.yml Fix broken link to Fixtures documentation on guides 2013-08-29 15:44:12 -05:00
teapots.yml Fixtures support for ActiveRecord::Model 2011-12-24 11:08:15 +00:00
topics.yml Update test data which doesn't reflect expected usage 2014-06-12 15:33:25 -06: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
warehouse-things.yml
zines.yml