Initial import
git-svn-id: https://db-populate.googlecode.com/svn/trunk@2 f88e3d0c-0140-0410-ae37-a51a81e078ed
This commit is contained in:
parent
140a8c1763
commit
48523f662b
7
tasks/populate.rake
Normal file
7
tasks/populate.rake
Normal 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
|
Loading…
Reference in New Issue
Block a user