On 18 Sep 2008, at 12:37, dare ruby wrote: > > I dont want the defaults, i need to set the table name like, user_info > and client_info. i have used set_table_name method like, > > class Userinfo < ActiveRecord::Base > set_table_name "user_info" > end > > I have even set the environment.rb file like, > > ActiveRecord::Base.pluralize_table_names = false > > when i gave rake db:migrate , all files are migrated well but the > table > names are not changed in my DB. what i need to do to change the table > names of my own. Please suggest > Those settings just control what table Rails will try to use for a given class - they'll never change the schema.
If you want to change the schema, write a migration. Fred > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

