What's on Rails 4.2?
Nov 10, 2015
I've develped a couple of rails app recently and learned some neat tricks and tips I would like to share. Some of them are little pick from Rails 4.2 new release.
Rails 4.2 Adequate Record
Adequate Record is a set of performance improvements in Active Record that makes common find and find_by calls and some association queries up to 2x faster.
Rails 4.2 Web Console
New applications generated with Rails 4.2 now come with the Web Console gem by default. Web Console adds an interactive Ruby console on every error page and provides a console view and controller helpers.
Rails 4.2 Foreign Key Support
The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time, only the mysql, mysql2 and postgresql adapters support foreign keys.
Rails 4.2 Deprecations - Timestamp
Removed unused :timestamp type. Transparently alias it to :datetime in all cases. Fixes inconsistencies when column types are sent outside of Active Record, such as for XML serialization.