Articles by Prajakta Tambe

Rails 6.1 supports `if_not_exists` option for adding index

Rails 6.1 added support for if_not_exists option to add_index. The if_not_exists provided to create_table also gets propagated to all indexes getting created in the create_table block.

Rails adds support for descending order in find_each, find_in_batches and in_batches

Rails 6.1 has added support for providing order(ASC/DESC) to batch processing methods like find_each, find_in_batches and in_batches instead of processing records in ascending order always.

Rails adds round_mode parameter support to number helpers

Rails has added :round_mode parameter support to number helpers

Ruby 2.7 deprecates Regexp#match and Regexp#match? with a nil argument

Ruby 2.7 has deprecated Regexp#match and Regexp#match? with a nil argument. It will raise a TypeError in the next release.

Ruby 2.7 reverts the deprecation of flip-flop operator

Ruby 2.7 reverts the deprecation of flip-flop operator

Ruby 2.7 adds Enumerator#produce

Ruby 2.7 has added Enumerator#produce to generate Enumerator from any custom data-transformation.

Ruby 2.7 adds supports for Comparable#clamp with a range

Ruby 2.7 adds supports for Comparable#clamp with a range

Rails 6 adds Active Record Relation#pick

Rails 6 adds `ActiveRecord::Relation#pick` to pick the first value from the named column in the relation.

What's new in Interactive Ruby Shell (IRB) with Ruby 2.7

List of new and experimental features in the Interactive Ruby Shell(IRB) which are introduced with Ruby 2.7.

Rails 6 adds Relation#extract_associated

Rails 6 adds `ActiveRecord::Relation#extract_associated` for extracting associated records from a relation.

Who was hiring at RailsConf ?

List of companies hiring at RailsConf 2019 organised in Minneapolis

Rails 6 deprecates update_attributes and update_attributes!

Rails 6 has deprecated update_attributes and update_attributes! in favor of update and update!

Rails 6 adds db:prepare rake task

Rails 6 adds db:prepare rake task which creates the database, loads the schema, runs the migrations and initializes with the seed data