Commit b98b5c82 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Use destroy, in case we ever have before_destroy callbacks on Task

parent ba0bb170d633
......@@ -37,7 +37,7 @@
belongs_to :author, class_name: "User"
belongs_to :updated_by, class_name: "User"
has_many :tasks, dependent: :delete_all
has_many :tasks, dependent: :destroy
delegate :name, to: :project, prefix: true
delegate :name, :email, to: :author, prefix: true
......@@ -27,7 +27,7 @@
it { belong_to(:noteable) }
it { belong_to(:author).class_name('User') }
it { have_many(:tasks).dependent(:delete_all) }
it { have_many(:tasks).dependent(:destroy) }
describe 'validation' do
Supports Markdown
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