systems are go for migration

This commit is contained in:
Andrew Brown 2021-05-03 14:09:48 -07:00
parent 673edcef9c
commit 66da397df2

View File

@ -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(