class ActiveRecord::FixtureSet

def table_rows

a list of rows to insert to that table.
Returns a hash of rows to be inserted. The key is the table, the value is
def table_rows
  # allow specifying fixtures to be ignored by setting `ignore` in `_fixture` section
  fixtures.except!(*ignored_fixtures)
  TableRows.new(
    table_name,
    model_class: model_class,
    fixtures: fixtures,
  ).to_hash
end