Permalink
Browse files

Added version task.

  • Loading branch information...
1 parent ae4fa86 commit 99aa01215972d26b6d614ea2ab2a643bdff70d1b @midas committed Dec 13, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 rails_generators/prepare_seeding/templates/genesis.rake
@@ -13,4 +13,11 @@ namespace :db do
Rake::Task['db:migrate:reset'].invoke
Rake::Task['db:genesis'].invoke
end
+
+ namespace :genesis do
+ desc "Returns the current seed version from teh schema_seeds table"
+ task :version => :environment do
+ puts "[Genesis Seed Version] #{Genesis::Seeder.get_current_version}"
+ end
+ end
end

0 comments on commit 99aa012

Please sign in to comment.