title: Can I name a rails attribute "attribute?"
body: <p>I have a polymorphic table I am setting up between a model, let's call it Document, and a number of attributes that it has_many of. So I have a DocumentRelationship model and I wanted to write in this migration that the polymorphic attribute name would be "attribute". EG in the migration for DocumentRelationship I would add:</p>
  
  <pre><code> t.integer :attribute_id
   t.string  :attribute_type
  </code></pre>
  
  <p>Then, in the Document model I would say:</p>
  
  <pre><code> has_many :attributes, :polymorphic =&gt; true
  
   has_many :authors, :through =&gt; :attributes, :source_type =&gt; "Author"
  </code></pre>
  
  <p>Or something like that.</p>
  
  <p>Is it OK for me to name this field "attribute"? I know that you can't name a polymorphic field "object"; this leads to errors..</p>
  
  <p>Thanks!</p>