On 13 July 2015 at 13:23, Sasi Raju <[email protected]> wrote:
> I have one question
>
> Shall I create a table with uppercase in Mysql from ruby on rails.
>
> becoz whatever iam giving the tablename only table creation format like
> 1.lowercase
> 2.underscore
> 3.plural
>
> example
>
> tab_names .
>
> shall i change tab_names--->TABNAME....??
>
> is it rails default or possible to change???

If you are using Rails why would you want to do that?  Rails performs
a lot of its magic by having default rules that allow it to work out
what you want without you having to tell it all the details.  For
example, if you want to handle comments then the model class is
Comment, the table name is comments, the controller is
CommentsController, etc.  It is possible to override all these but if
you want to get the maximum out of Rails then don't, unless you have a
specific problem that you need to address.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtQ_SmZpEnENAax4XA6T5ZHGgk60jnD4j1P1qGU42Ndhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to