# Singular Table name

**URL:** <https://www.ruby-forum.com/t/singular-table-name/164641>\
**Category:** Rails\
**Created:** [April 3, 2009, 4:14pm UTC](https://www.ruby-forum.com/t/singular-table-name/164641 "2009-04-03T16:14:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sushrut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Post date:** [April 3, 2009, 4:14pm UTC](https://www.ruby-forum.com/t/singular-table-name/164641/1 "2009-04-03T16:14:03Z")

</div>

Hi,  
I am using oracle,  
& the table name is in singular (for ex. test)type then how i use that  
table in my application without changing the table name.  
i.e. I have to use that table name (test) as it is.

---

<div class="post-metadata">

**Author:** ![sushrut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Post date:** [April 3, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/singular-table-name/164641/2 "2009-04-03T16:17:33Z")

</div>

class YourModel \< ActiveRecord::Base

set\_table\_name ‘test’

end

Try reading the docs →

> **[ActiveRecord::Base](https://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002234)**
>
> Active Record Active Record objects don't specify their attributes directly, but rather infer them from the table definition with which they're linked.

- 

Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)

On Fri, Apr 3, 2009 at 11:14 AM, Sushrut S.
