[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
|
platform = bl.save_to_platform
|
||||||
|
|
||||||
rep = (project.repositories.map(&:id) & platform.repositories.map(&:id)).first
|
rep = (project.repositories.map(&:id) & platform.repositories.map(&:id)).first
|
||||||
|
|
||||||
|
puts rep
|
||||||
|
|
||||||
bl.save_to_repository_id = rep
|
bl.save_to_repository_id = rep
|
||||||
bl.save
|
bl.save!
|
||||||
rescue
|
rescue Exception => e
|
||||||
|
puts e.inspect
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue