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.
14 lines
342 B
Ruby
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
|