mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
systems are go for migration
This commit is contained in:
parent
673edcef9c
commit
66da397df2
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user