diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-04 19:35:08 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-04 19:35:08 +0000 |
commit | 4b9df2eac774aa045aa5207c8bc613ed6ca67d42 (patch) | |
tree | 146cc7c37f3c51c112bbeed674f799f6c3e10ac1 /app/models/repository.rb | |
parent | 696d21f8c8c88d487df46112082fcb1d9b5f6ec2 (diff) | |
download | redmine-4b9df2eac774aa045aa5207c8bc613ed6ca67d42.tar.gz redmine-4b9df2eac774aa045aa5207c8bc613ed6ca67d42.zip |
Fixes Repository#clear_changesets.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1783 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 9768e3e3c..81e6647a2 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -134,6 +134,7 @@ class Repository < ActiveRecord::Base def clear_changesets connection.delete("DELETE FROM changes WHERE changes.changeset_id IN (SELECT changesets.id FROM changesets WHERE changesets.repository_id = #{id})") + connection.delete("DELETE FROM changesets_issues WHERE changesets_issues.changeset_id IN (SELECT changesets.id FROM changesets WHERE changesets.repository_id = #{id})") connection.delete("DELETE FROM changesets WHERE changesets.repository_id = #{id}") end end |