[issue #590] Migration debug
This commit is contained in:
parent
e57da721de
commit
623ce0cefb
|
@ -9,9 +9,13 @@ class AddSaveToRepositoryToBuildLists < ActiveRecord::Migration
|
|||
platform = bl.save_to_platform
|
||||
|
||||
rep = (project.repositories.map(&:id) & platform.repositories.map(&:id)).first
|
||||
|
||||
puts rep
|
||||
|
||||
bl.save_to_repository_id = rep
|
||||
bl.save
|
||||
rescue
|
||||
bl.save!
|
||||
rescue Exception => e
|
||||
puts e.inspect
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue