These tasks dealt with data migrations or stats generations which were done only once, so we don't need them anymore. New CONSUL installations don't need these tasks, and existing CONSUL installations will execute them when upgrading one release at a time.
17 lines
334 B
Ruby
17 lines
334 B
Ruby
namespace :budgets do
|
|
namespace :email do
|
|
|
|
desc "Sends emails to authors of selected investments"
|
|
task selected: :environment do
|
|
Budget.last.email_selected
|
|
end
|
|
|
|
desc "Sends emails to authors of unselected investments"
|
|
task unselected: :environment do
|
|
Budget.last.email_unselected
|
|
end
|
|
|
|
end
|
|
|
|
end
|