On Sat, May 7, 2011 at 2:51 PM, Frederick Cheung <frederick.che...@gmail.com > wrote:
> > > On 7 May 2011, at 20:35, David Kahn <d...@structuralartistry.com> wrote: > > I added this rule to inflections: > > inflect.uncountable 'data' > > My table name use to be AuthDatas and I want it to be AuthData. I migrated > the db to change the table name and verified in the debugger that in fact > "data".singularize and "data".pluralize == 'data'. > > > But does it singularize/pluralize auth_data correctly? > I agree I should be using 'datum' for the plural form although I dont think that word have ever passed my lips. That aside, what is strange is this: (rdb:1) "auth_data".pluralize "auth_datas" (rdb:1) "auth_data".singularize "auth_datum" (rdb:1) "data".pluralize "datas" (rdb:1) "data".singularize "datum" So it seems things are reversed. The above is run with no inflection set by me. > > Fred > > > But when I go to load the model: > > AuthData > > I get the error "AuthData(Table doesn't exist)" > > Am I confused or is something not right? The *reason* I made the change was > to make the table name pretty! No other reason. > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.