# Using the MySQL SET datatype

**URL:** <https://www.ruby-forum.com/t/using-the-mysql-set-datatype/61255>\
**Category:** Rails\
**Created:** [May 22, 2006, 2:25pm UTC](https://www.ruby-forum.com/t/using-the-mysql-set-datatype/61255 "2006-05-22T14:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hates\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f08c70/32.png) [@Hates\_S](https://www.ruby-forum.com/u/Hates_S)\
**Post date:** [May 22, 2006, 2:25pm UTC](https://www.ruby-forum.com/t/using-the-mysql-set-datatype/61255/1 "2006-05-22T14:25:06Z")

</div>

Does anyone have any links to example code showing how to use the MySQL  
SET datatype in my ActiveRecord objects.

---

<div class="post-metadata">

**Author:** ![Hates\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f08c70/32.png) [@Hates\_S](https://www.ruby-forum.com/u/Hates_S)\
**Post date:** [May 22, 2006, 2:28pm UTC](https://www.ruby-forum.com/t/using-the-mysql-set-datatype/61255/2 "2006-05-22T14:28:46Z")

</div>

> Does anyone have any links to example code showing how to use the MySQL  
> SET datatype in my ActiveRecord objects.

Ok, ignore me! I’ll just code in the values and provide a method to  
extract the different options.

---

<div class="post-metadata">

**Author:** ![Hates\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f08c70/32.png) [@Hates\_S](https://www.ruby-forum.com/u/Hates_S)\
**Post date:** [May 22, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/using-the-mysql-set-datatype/61255/3 "2006-05-22T14:46:39Z")

</div>

Hory Shit! What are you on?

We’re watching Sparky the Gay Dog.

What are you watching?

Regards,  
Ryan.

---

<div class="post-metadata">

**Author:** ![Hates\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f08c70/32.png) [@Hates\_S](https://www.ruby-forum.com/u/Hates_S)\
**Post date:** [May 22, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/using-the-mysql-set-datatype/61255/4 "2006-05-22T15:17:52Z")

</div>

Ryan A. wrote:

> We’re watching Sparky the Gay Dog.
> 
> What are you watching?

What should I be watching?!?

I would like to add that it’s not my decision to have a SET datatype 😛
