Initial import

git-svn-id: https://db-populate.googlecode.com/svn/trunk@2 f88e3d0c-0140-0410-ae37-a51a81e078ed
This commit is contained in:
joshknowles 2007-11-28 18:12:15 +00:00
parent 140a8c1763
commit 48523f662b

7
tasks/populate.rake Normal file
View File

@ -0,0 +1,7 @@
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