aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/fixture_set/table_rows.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move `resolve_sti_reflections` which is table row related code into `TableRow`Ryuta Kamizono2018-11-031-88/+3
|
* Don't pass useless `table_name` to `ModelMetadata.new`Ryuta Kamizono2018-11-031-1/+1
| | | | | | | The `model_metadata` is only used if `model_class` is given. If `model_class` is given, the `table_name` is always `model_class.table_name`.
* Avoid violating key constraints in fixture HABTM associationsJames Le Cuirot2018-10-291-0/+3
| | | | | | | | | When loading fixtures, Ruby 1.9's hash key ordering means that HABTM join table rows are always loaded before the parent table rows, violating foreign key constraints that may be in place. This very simple change ensures that the parent table's key appears first in the hash. Violations may still occur if fixtures are loaded in the wrong order but those instances can be avoided unlike this one.
* Move FixtureSet::ReflectionProxy and FixtureSet::HasManyThroughProxy to ↵Gannon McGibbon2018-10-051-0/+32
| | | | FixtureSet::TableRows
* Introduce FixtureSet::TableRows and FixtureSet::TableRowGannon McGibbon2018-10-051-0/+97