diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-09 11:06:58 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-03-09 11:06:58 -0300 |
commit | 9e342fb00a50cbb483013acd4644bd31c440f99a (patch) | |
tree | 9975102a066242ff76162c42a6754248a879c085 /app | |
parent | 500337c4b23700a30876c6d2f8e7c612f8114432 (diff) | |
download | gitlab-ce-9e342fb00a50cbb483013acd4644bd31c440f99a.tar.gz |
Destroy all related todos when removing a project
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 3235a1cee50..426464dee81 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -151,6 +151,7 @@ class Project < ActiveRecord::Base has_many :releases, dependent: :destroy has_many :lfs_objects_projects, dependent: :destroy has_many :lfs_objects, through: :lfs_objects_projects + has_many :todos, dependent: :destroy has_one :import_data, dependent: :destroy, class_name: "ProjectImportData" |