Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Commit

Permalink
Fix the db:migrate:plugin task - did rake change? [fixes #46]
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom committed Jun 16, 2009
1 parent 9143162 commit bc5cd97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/engines.rake
Expand Up @@ -118,10 +118,10 @@ namespace :db do
end

desc 'Migrate a specified plugin.'
task({:plugin => :environment}, :name, :version) do |task, args|
name = args[:name] || ENV['NAME']
task(:plugin => :environment) do
name = ENV['NAME']
if plugin = Engines.plugins[name]
version = args[:version] || ENV['VERSION']
version = ENV['VERSION']
puts "Migrating #{plugin.name} to " + (version ? "version #{version}" : 'latest version') + " ..."
plugin.migrate(version ? version.to_i : nil)
else
Expand Down

0 comments on commit bc5cd97

Please sign in to comment.