diff --git a/lib/tasks/data_migrations.rake b/lib/tasks/data_migrations.rake index 0b2bb2c9..42df5034 100644 --- a/lib/tasks/data_migrations.rake +++ b/lib/tasks/data_migrations.rake @@ -25,7 +25,7 @@ namespace :data_migrations do desc "Create PageReferences for all the old content linkers" task create_content_linker_page_references: :environment do - # require 'pry' + require 'pry' start_time = DateTime.current puts "Starting the long migration!" @@ -91,11 +91,11 @@ namespace :data_migrations do end # Debug - puts " Referencing page: #{referencing_page_type}-#{referencing_page.id}" - puts " Referenced page: #{referenced_page_type}-#{referenced_page.id}" - puts " Attribute field: #{attribute_field.label} (#{attribute_field.id})" - puts "OK?" - binding.pry + # puts " Referencing page: #{referencing_page_type}-#{referencing_page.id}" + # puts " Referenced page: #{referenced_page_type}-#{referenced_page.id}" + # puts " Attribute field: #{attribute_field.label} (#{attribute_field.id})" + # puts "OK?" + # binding.pry # Create a simulated Attribute with the existing link's value(s) attribute = Attribute.find_or_initialize_by(