tracks/tracks/script/console_sandbox
bsag 1129cc8ca6 Changed shebang in all the scripts/* scripts to /usr/bin/env ruby
New 'All projects' feed was reporting all projects as 'Done' because of a missing questionmark to test for truth.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@241 a4c988fc-2ded-0310-b66e-134b36920a42
2006-05-13 13:58:14 +00:00

7 lines
206 B
Ruby
Executable file

#!/usr/bin/env ruby
ActiveRecord::Base.lock_mutex
ActiveRecord::Base.connection.begin_db_transaction
at_exit do
ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.unlock_mutex
end