# Generator attributes

**URL:** <https://www.ruby-forum.com/t/generator-attributes/151165>\
**Category:** Rails\
**Created:** [October 17, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/generator-attributes/151165 "2008-10-17T16:05:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [October 17, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/generator-attributes/151165/1 "2008-10-17T16:05:17Z")

</div>

Hello,

I’m currently implenting a ERM diagram and neither the Rails API nor  
Google could help me. I’ve got columns like ENUM(‘M’, ‘F’), VARCHAR(2)  
and TINYINT and I can’t find any attribute types that fit mine. Is there  
any possiblity to add columns with these types (like: " t.string :name"  
but e.g. t.enum instead of t.string) without using ‘execute “add column  
blah”’?

Thanks for the help,  
Patrick

---

<div class="post-metadata">

**Author:** ![cojones](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@cojones](https://www.ruby-forum.com/u/cojones)\
**Post date:** [October 17, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/generator-attributes/151165/2 "2008-10-17T16:11:57Z")

</div>

Heinz S. wrote:

> Hello,
> 
> I’m currently implenting a ERM diagram and neither the Rails API nor  
> Google could help me. I’ve got columns like ENUM(‘M’, ‘F’), VARCHAR(2)  
> and TINYINT and I can’t find any attribute types that fit mine. Is there  
> any possiblity to add columns with these types (like: " t.string :name"  
> but e.g. t.enum instead of t.string) without using 'execute "add column

[http://enum-column.rubyforge.org/](http://enum-column.rubyforge.org/)
