# \[activerecord\]what are the reserved attribute names that become protected attributes

**URL:** <https://www.ruby-forum.com/t/activerecord-what-are-the-reserved-attribute-names-that-become-protected-attributes/172786>\
**Category:** Rails\
**Created:** [July 28, 2009, 1:48am UTC](https://www.ruby-forum.com/t/activerecord-what-are-the-reserved-attribute-names-that-become-protected-attributes/172786 "2009-07-28T01:48:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ate50eggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Post date:** [July 28, 2009, 1:48am UTC](https://www.ruby-forum.com/t/activerecord-what-are-the-reserved-attribute-names-that-become-protected-attributes/172786/1 "2009-07-28T01:48:00Z")

</div>

I just ran into the concept of protected attributes in ActiveRecord  
when I tried to add a field/column with the name ‘type’. Is there any  
documentation on the reserved names that are considered protected by  
default? I haven’t been able to find anything conclusive.

Thanks.

---

<div class="post-metadata">

**Author:** ![ate50eggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Post date:** [July 28, 2009, 2:00am UTC](https://www.ruby-forum.com/t/activerecord-what-are-the-reserved-attribute-names-that-become-protected-attributes/172786/2 "2009-07-28T02:00:17Z")

</div>

On Mon, Jul 27, 2009 at 4:46 PM, Nathan B.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I just ran into the concept of protected attributes in ActiveRecord  
> when I tried to add a field/column with the name ‘type’. Is there any  
> documentation on the reserved names that are considered protected by  
> default? I haven’t been able to find anything conclusive.

? googling “rails reserved words” brings this up as #1:

[http://wiki.rubyonrails.org/rails/pages/ReservedWords](http://wiki.rubyonrails.org/rails/pages/ReservedWords)

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
