It was never used and its data is based on Madrid's requirements for successful proposals. It was written during the development of the dashboard, probably for testing purposes.
11 lines
312 B
Ruby
11 lines
312 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|
|
|
next if action.link.blank?
|
|
|
|
Link.create!(label: action.title, url: action.link, linkable: action)
|
|
end
|
|
end
|
|
end
|