Added reset_and_populate rake task.
This commit is contained in:
parent
e2ccda0ecb
commit
ca4478bbf4
4
README
4
README
@ -51,13 +51,15 @@ and re-run the task.
|
||||
|
||||
db_populate rake tasks
|
||||
======================
|
||||
db_populate includes two rake tasks:
|
||||
db_populate includes three rake tasks:
|
||||
|
||||
rake db:populate loads all of the data for the current environment
|
||||
rake db:migrate_and_populate is the same as calling rake db:migrate followed by rake db:populate
|
||||
rake db:reset_and_populate is the same as calling rake db:reset followed by rake db:populate
|
||||
|
||||
History
|
||||
=======
|
||||
2009-09-15 Add db:reset_and_populate task
|
||||
2009-05-17 Fix typo in README
|
||||
2009-03-21 Patch from Ahmed El-Daly to allow PKs with names other than id
|
||||
2008-10-11 Initial release
|
@ -1,7 +1,7 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "db_populate"
|
||||
s.version = "0.2.3"
|
||||
s.date = "2009-05-17"
|
||||
s.version = "0.2.4"
|
||||
s.date = "2009-09-15"
|
||||
s.summary = "Seed data populator for Rails"
|
||||
s.email = "MikeG1@larkfarm.com"
|
||||
s.homepage = "http://github.com/ffmike/db-populate/tree/master"
|
||||
|
@ -18,4 +18,9 @@ namespace :db do
|
||||
|
||||
task :migrate_and_load => [ 'db:migrate', 'db:populate' ]
|
||||
|
||||
desc "Drop and reset the database for the current environment and then load seed data"
|
||||
task :reset_and_populate => [ 'db:reset', 'db:populate']
|
||||
|
||||
task :reset_and_load => [ 'db:reset', 'db:populate']
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user