Skip to content

Instantly share code, notes, and snippets.

@nflorentin
Created June 29, 2016 08:09
Show Gist options
  • Save nflorentin/d68e20ed6420527abdb6dc49b1cb7461 to your computer and use it in GitHub Desktop.
Save nflorentin/d68e20ed6420527abdb6dc49b1cb7461 to your computer and use it in GitHub Desktop.
visualize a rails fixtures
ActiveRecord::FixtureSet::File.open("#{Rails.root}/test/fixtures/settings.yml") do |fh|
fh.each do |fn, row|
p fn
p row
end
end
# see https://github.com/rails/rails/blob/v4.2.6/activerecord/lib/active_record/fixtures.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment