# Limits on Postgresql integers not respected

**URL:** <https://www.ruby-forum.com/t/limits-on-postgresql-integers-not-respected/142885>\
**Category:** Rails\
**Created:** [July 12, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/limits-on-postgresql-integers-not-respected/142885 "2008-07-12T20:15:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@raam](https://www.ruby-forum.com/u/raam)\
**Post date:** [July 12, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/limits-on-postgresql-integers-not-respected/142885/1 "2008-07-12T20:15:26Z")

</div>

Hi,  
I find that limits on postgresql integers are not respected in Rails  
2.1.  
For example setting

t.integer :employee\_id, :limit =\> 8

resolves to a regular int in schema.rb:

t.integer :employee\_id

Is there a quick monkey-patch to this?

Ram
