namespace :radiant do namespace :extensions do namespace :vars_if do desc "Runs the migration of the Vars If extension" task :migrate => :environment do require 'radiant/extension_migrator' if ENV["VERSION"] VarsIfExtension.migrator.migrate(ENV["VERSION"].to_i) else VarsIfExtension.migrator.migrate end end end end end