db_populate/tasks/populate.rake
joshknowles 48523f662b Initial import
git-svn-id: https://db-populate.googlecode.com/svn/trunk@2 f88e3d0c-0140-0410-ae37-a51a81e078ed
2007-11-28 18:12:15 +00:00

8 lines
330 B
Ruby

namespace :db do
desc "Loads initial database models for the current environment."
task :populate => :environment do
Dir[File.join(RAILS_ROOT, 'db', 'fixtures', '*.rb')].sort.each { |fixture| load fixture }
Dir[File.join(RAILS_ROOT, 'db', 'fixtures', RAILS_ENV, '*.rb')].sort.each { |fixture| load fixture }
end
end