This instance will be upgraded to Heptapod 0.27.1 on 2021-12-08 at 22:00 UTC+1 (a few minutes of down time)

Commit 9e342fb0 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Destroy all related todos when removing a project

parent 3e827d9d7e83
......@@ -151,6 +151,7 @@ def update_forks_visibility_level
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"
......@@ -68,6 +68,7 @@
it { have_many(:runners) }
it { have_many(:variables) }
it { have_many(:triggers) }
it { have_many(:todos).dependent(:destroy) }
describe 'modules' do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment