Fixed bug in rake task
This commit is contained in:
@@ -2,6 +2,8 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user