Changeset 308

Show
Ignore:
Timestamp:
02/08/07 10:05:26 (2 years ago)
Author:
aiwilliams
Message:

BUG: An extension's migrate task needs to depend on the environment task and require the migrator correctly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mental/radiant/lib/generators/extension/templates/tasks.rake

    r230 r308  
    44       
    55      desc "Runs the migration of the <%= extension_name %> extension" 
    6       task :migrate do 
    7         require 'extension_migrator' 
     6      task :migrate => :environment do 
     7        require 'radiant/extension_migrator' 
    88        if ENV["VERSION"] 
    99          <%= class_name %>.migrator.migrate(ENV["VERSION"].to_i)