Files
nairobi/lib/tasks/proposal_actions.rake
Juan Salvador Pérez García 3c3f60dfcc Implements #173
Public view for suggested actions as well as resources has been
completelly redesigned.

Private side for this feature has been adapted as well in order to meet
the requirements.
2018-07-17 17:58:22 +02:00

14 lines
342 B
Ruby

namespace :proposal_actions do
desc 'Move link attribute to links collection'
task migrate_links: :environment do
ProposalDashboardAction.where.not(link: nil).each do |action|
Link.create!(
label: action.title,
url: action.link,
open_in_new_tab: true,
linkable: action
)
end
end
end