On 27 February 2011 20:06, Philippe Le Rohellec
<philippe.lerohellec@gmail.com> wrote:
> Same here. I just upgraded from 3.0.3 to 3.0.5 and there is one model out of
> ~20 that fails to construct the table name properly:
> $ rails console
> Loading development environment (Rails 3.0.5)
> ruby-1.9.2-head :001 > pm = PackageMeta.new
> Mysql2::Error: Table 'uupdates_dev.package_meta' doesn't exist
>
> The table name should be package_metas. It was working fine in 3.0.3.
I guess it is assuming media and meta are both already plural, which
media is of course so strictly the model should be medium. Not sure
about meta though, one metum two meta?
Colin
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment