Avinash
2006-Jun-03 09:13 UTC
[Rails] legacy support: removing underscore from table name.
I am using ms sql server and want to configure RoR such that it does not convert the given table name (example: rubyonrails) to ruby_on_rails. I set @@pluralize_table_names = false, so that it does not pluralize the table names but cannot find the config setting which will force it not to put underscore between words in a table name. thanks in advance, -- avinash -- Posted via http://www.ruby-forum.com/.
Vince Nibler
2006-Jun-03 09:56 UTC
[Rails] legacy support: removing underscore from table name.
Try this in your class definition: set_table_name "rubyonrails" I think that will make the table name explicit, and keep rails from converting a class named RubyOnRails into a table named ruby_on_rails. On 6/3/06, Avinash <avinash404@gmail.com> wrote:> > I am using ms sql server and want to configure RoR such that it does not > convert the given table name (example: rubyonrails) to ruby_on_rails. > > I set @@pluralize_table_names = false, so that it does not pluralize > the table names but cannot find the config setting which will force it > not to put underscore between words in a table name. > > thanks in advance, > -- > avinash > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Vince -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060603/5564b835/attachment.html