Forum: Ruby on Rails Singular Table name

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sushrut S. (Guest)
on 2009-04-03 18:14
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.
Maurício L. (Guest)
on 2009-04-03 18:17
(Received via mailing list)
class YourModel < ActiveRecord::Base

   set_table_name 'test'

end

Try reading the docs ->
http://api.rubyonrails.org/classes/ActiveRecord/Ba...

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



On Fri, Apr 3, 2009 at 11:14 AM, Sushrut S.
This topic is locked and can not be replied to.