Skip to content

Instantly share code, notes, and snippets.

@maveonair
Created June 30, 2013 19:41
Show Gist options
  • Save maveonair/5896570 to your computer and use it in GitHub Desktop.
Save maveonair/5896570 to your computer and use it in GitHub Desktop.
Rails: load/create fixtures via the Rails console
require 'active_record/fixtures'
ActiveRecord::Fixtures.create_fixtures("#{Rails.root}/test/fixtures", "fixture")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment