Created
June 30, 2013 19:41
-
-
Save maveonair/5896570 to your computer and use it in GitHub Desktop.
Rails: load/create fixtures via the Rails console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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