# Single Table Inheritance using a boolean column

**URL:** <https://www.ruby-forum.com/t/single-table-inheritance-using-a-boolean-column/110972>\
**Category:** Rails\
**Created:** [August 1, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-using-a-boolean-column/110972 "2007-08-01T16:58:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 1, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-using-a-boolean-column/110972/1 "2007-08-01T16:58:42Z")

</div>

Hi everybody,

Is it possible to use a boolean column to determine between classes  
instead of a varchar one?  
I need it because boolean is faster and takes up less space, and also  
makes the SQL schema look better.

Erik
