Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Peter Cooperx http://www.petercooper.co.uk/

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Loading data from fixtures in development mode

By Tim Bates.

   1  desc "Load fixtures data into the development database"
   2  task :load_fixtures_data_to_development do
   3     require 'active_record/fixtures'
   4     ActiveRecord::Base.establish_connection(
   5         ActiveRecord::Base.configurations["development"])
   6     Fixtures.create_fixtures("test/fixtures",
   7         ActiveRecord::Base.configurations[:fixtures_load_order])
   8  end
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS