[issue #590] Migration debug

This commit is contained in:
George Vinogradov 2012-08-06 13:07:46 +04:00
parent e57da721de
commit 623ce0cefb
1 changed files with 6 additions and 2 deletions

View File

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