# Is :dependent -\> :delete\_all gone in Rails 2.0.2?

**URL:** <https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986>\
**Category:** Rails\
**Created:** [March 14, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986 "2008-03-14T21:40:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [March 14, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986/1 "2008-03-14T21:40:24Z")

</div>

Rails 2.0.2  
DB: SQL Server 2000 using AR adapter/ODBC

I seem to be having a problem instantiating any models with :dependent  
=\> :delete\_all. If I change them to :dependent =\> :delete, they seem to  
be ok.

Is the :delete\_all specifier gone from Rails 2.0.2?

Or is this a Rails 2.x thing or a SQL Server adapter issue or both?

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [March 15, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986/2 "2008-03-15T17:41:54Z")

</div>

> Is the :delete\_all specifier gone from Rails 2.0.2?

It appears to still be in the API:  
[http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html#M001103](http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html#M001103)

Are you getting an error?

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [March 15, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/is-dependent-delete-all-gone-in-rails-2-0-2/131986/3 "2008-03-15T18:19:35Z")

</div>

I’m pretty sure I did. But I’m unable to reproduce it. Will roll with  
this until I see it again.

Thanks for the response.

Wes
