* Fix when gzip returns a UTF-8 string on Ruby 1.9, when it is actually
binary.
31690ea8b3420aea4ea4427e1599665d093c974f
* ActiveRecord limit values will not escape Arel SQL Literal nodes
7530c5224c77202d62f44a26ae5036d1dc00f579
* Relation#where() calls will always produce AND statements regardless of how
conditions hashes behaves (reverting 00693209ecc).
41c35abed778a7a03e7a9c14009321cd6bc11c26
* Observer callbacks will only be executed once when using STI classes in
ActiveRecord.
ee491b064bff126a67600d694511986b8636d47b
## Deprecations Added:
* Deprecate Relation#& alias for Relation#merge
66003f596452aba927312c4218dfc8d408166d54
* Deprecated support for interpolated association conditions with the
:conditions => 'foo = #{bar}' syntax, and added the new interpolation syntax
which is :conditions => proc { "foo = #{bar}" }.
756e70cb4492ded56b72b1601da7d198eaf7b840
This is not a complete list of changes. The complete list of changes can be
found here:
... works in 3.0.3, but produces this bad SQL in 3.0.5....
Mysql::Error: Table 'remix3_development.featured_media' doesn't exist:
SELECT `featured_media`.* FROM `featured_media` WHERE
`featured_media`.`media_type` = 'Message' AND
`featured_media`.`unfeatured_at` IS NULL AND (`featured_media`.site_id
= 1) ORDER BY created_at desc LIMIT 1
Note the table name is not pluralized. In my case, Site
has_many :featured_medias
FeaturedMedia does include a class method named featured_media, ala...
class FeaturedMedia < ActiveRecord::Base
...
def self.featured_media(site, media_class)
...
end
end
and the .where above is called within FeaturedMedia.featured_media.
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?
I'm new to rails and i want to use mysql with rails 3.0.5 on windows 7.
When I run the command
rake db:create
I get a pop up box saying that SQLite3.dll is missing.