File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ def perform(stack)
3232
3333 delete ( Shipit ::OutputChunk . joins ( :task ) . where ( task : { stack_id : stack . id } ) )
3434 delete ( Shipit ::Task . where ( stack_id : stack . id ) )
35+
36+ delete ( Shipit ::Commit . where ( stack_id : stack . id ) )
37+
3538 stack . destroy!
3639 end
3740
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def blank?
3838 has_many :github_hooks , dependent : :destroy , class_name : 'Shipit::GithubHook::Repo'
3939 has_many :hooks , dependent : :destroy
4040 has_many :api_clients , dependent : :destroy
41- has_one :continuous_delivery_schedule
41+ has_one :continuous_delivery_schedule , dependent : :destroy
4242 belongs_to :lock_author , class_name : :User , optional : true
4343 belongs_to :repository
4444 validates_associated :repository
You can’t perform that action at this time.
0 commit comments