{"id":8003,"date":"2019-10-22T11:57:01","date_gmt":"2019-10-22T06:27:01","guid":{"rendered":"https:\/\/www.botreetechnologies.com\/blog\/?p=8003"},"modified":"2026-03-27T17:12:38","modified_gmt":"2026-03-27T11:42:38","slug":"notable-activerecord-changes-in-rails-6-part-3","status":"publish","type":"post","link":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/","title":{"rendered":"Notable ActiveRecord Changes in Rails 6 &#8211; Part 3"},"content":{"rendered":"\n<p>In our last two blogs, <a href=\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-1\/\" target=\"_blank\" rel=\"noreferrer noopener\">part-1<\/a> and <a href=\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">part-2<\/a>, we covered many ActiveRecord methods of Rails 6. Now, let\u2019s look at some more interesting ActiveRecord methods in this article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ActiveRecord::Relation#extract_associated &#8211; Shorthand for Extracting Associated Record<\/h2>\n\n\n\n<p>If we want to fetch the associated records from a scoped relation, we use <code>#preload<\/code> and <code>#collect<\/code> methods on ActiveRecord::Relation before Rails 6.<\/p>\n\n\n\n<p>Rails 6 defines <code>#extract_associated<\/code> method for extracting associated records from a relation. Let\u2019s look at the below code snippet for a more clear view.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Before RAILS 6 (In Rails 5.2):<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"72\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-1-3.png\" alt=\"Output 1\" class=\"wp-image-13385\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-1-3.png 749w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-1-3-300x29.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure><\/div>\n\n\n\n<p><code>#extract_associated<\/code> method narrates the objective of above(<code>#preload<\/code> and <code>#collect<\/code>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">RAILS 6:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"70\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-2.png\" alt=\"output 2\" class=\"wp-image-13386\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-2.png 748w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-2-300x28.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/figure><\/div>\n\n\n\n<p>ActiveRecord::Relation#reselect &#8211; Shorthand for<\/p>\n\n\n\n<p><code>unscope(:select).select(fields)<\/code><\/p>\n\n\n\n<p>Rails 6 has added <code>#reselect<\/code> method to ActiveRecord::Relation which functions similar to the methods <code>#rewhere<\/code> and <code>#reorder<\/code>. These methods are used to change the previously given conditions to new conditions.<\/p>\n\n\n\n<p>Same way <code>#reselect<\/code> method allows us to change the previously selected attributes to new attributes.<\/p>\n\n\n\n<p>Before Rails 6, we can perform similar operation with method chaining of 2 methods(<code>unscope(:select).select(fields)<\/code>) as below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"75\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-3.png\" alt=\"output 3\" class=\"wp-image-13387\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-3.png 749w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-3-300x30.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure><\/div>\n\n\n\n<p>Now in Rails 6, it is more readable by using <code>#reselect<\/code> method.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"75\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-4.png\" alt=\"output 4\" class=\"wp-image-13388\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-4.png 748w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-4-300x30.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Support for Endless Ranges in where<\/h3>\n\n\n\n<p>Ruby 2.6 has added endless ranges <code>(1..)<\/code> which is equivalent to explicitly specifying <code>Float::INFINITY<\/code> at the end of the range. Support for endless ranges added in <a href=\"https:\/\/www.botreetechnologies.com\/blog\/introducing-jquery-in-rails-6-using-webpacker\/\" target=\"_blank\" rel=\"noreferrer noopener\">Rails 6<\/a>.<br>Let\u2019s look at its different behaviors in different <a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\" target=\"_blank\" rel=\"noreferrer noopener\">Ruby and Rails<\/a> versions when using endless ranges with where method.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Before Ruby 2.6 and RAILS 6:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"107\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-5.png\" alt=\"output 5\" class=\"wp-image-13389\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-5.png 748w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-5-300x43.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/figure><\/div>\n\n\n\n<p>As endless ranges are not defined in the previous version of ruby, it is throwing a syntax error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Ruby 2.6 and RAILS 5.2:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"746\" height=\"126\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-6.png\" alt=\"output 6\" class=\"wp-image-13390\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-6.png 746w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-6-300x51.png 300w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/figure><\/div>\n\n\n\n<p>Endless ranges are defined in Ruby 2.6, so it is not throwing error but returning a wrong result as it is not supported by <a href=\"https:\/\/www.botreetechnologies.com\/blog\/rails-5-and-cookie-serialization\/\" target=\"_blank\" rel=\"noreferrer noopener\">Rails 5.2<\/a> (in previous versions of Rails).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Ruby 2.6 and RAILS 6<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"203\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-7.png\" alt=\"output 7\" class=\"wp-image-13391\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-7.png 747w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-7-300x82.png 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/figure><\/div>\n\n\n\n<p>In this Ruby and Rails versions, we have a correct result for using endless ranges with where method.<\/p>\n\n\n\n<p><strong>Note:<\/strong><\/p>\n\n\n\n<p>We have the only end of the range <code>(1..)<\/code> is available. The reverse of the same i.e., <code>(..1)<\/code> throws syntax error so there&#8217;s no need to add support for implicit &#8211;<code>Float::INFINITY<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Allow Strong Params in ActiveRecord::Base#exists?<\/h3>\n\n\n\n<p><a href=\"https:\/\/github.com\/rails\/rails\/pull\/34891\" target=\"_blank\" rel=\"noopener noreferrer\">This commit<\/a> in Rails 6 allows <code>ActionController::Params<\/code> as argument to <code>ActiveRecord::Base#exists<\/code>?. This works already for <code>#create<\/code> and <code>#where<\/code>.<\/p>\n\n\n\n<p>Let\u2019s look at the example<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">RAILS 6:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"236\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-8.png\" alt=\"output 8\" class=\"wp-image-13392\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-8.png 624w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-8-300x113.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Before Rails 6:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"240\" src=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-9.png\" alt=\"OUTPUT 9\" class=\"wp-image-13393\" srcset=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-9.png 622w, https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/12\/output-9-300x116.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure><\/div>\n\n\n\n<p>I hope you have enjoyed this series of Rails 6 ActiveRecord methods.<br>Have a happy coding!!<\/p>\n\n\n\n<p><a href=\"https:\/\/www.botreetechnologies.com\/ruby-on-rails-development\"><b>Click her<\/b><strong>e for more details&#8230;<\/strong><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.botreetechnologies.com\/contact\">Consulting is free<\/a> &#8211; let us help you grow!<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>In our last two blogs, part-1 and part-2, we covered&#8230;<\/p>\n","protected":false},"author":24,"featured_media":13384,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,10],"tags":[],"class_list":["post-8003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Notable ActiveRecord Changes In Rails 6 - Part 3- BoTree Technologies<\/title>\n<meta name=\"description\" content=\"Looking for good ActiveRecord methods in Rails 6? Here are some ActiveRecord methods that can ease your coding process. Read More:\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Notable ActiveRecord Changes In Rails 6 - Part 3- BoTree Technologies\" \/>\n<meta property=\"og:description\" content=\"Looking for good ActiveRecord methods in Rails 6? Here are some ActiveRecord methods that can ease your coding process. Read More:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\" \/>\n<meta property=\"og:site_name\" content=\"BoTree Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BoTreeTechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-22T06:27:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-27T11:42:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Naiya Shah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:site\" content=\"@BoTreeTech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naiya Shah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\"},\"author\":{\"name\":\"Naiya Shah\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/68f8340395086b417feb15b21211bf8c\"},\"headline\":\"Notable ActiveRecord Changes in Rails 6 &#8211; Part 3\",\"datePublished\":\"2019-10-22T06:27:01+00:00\",\"dateModified\":\"2026-03-27T11:42:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\"},\"wordCount\":388,\"commentCount\":7,\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg\",\"articleSection\":[\"Ruby on Rails\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\",\"name\":\"Notable ActiveRecord Changes In Rails 6 - Part 3- BoTree Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg\",\"datePublished\":\"2019-10-22T06:27:01+00:00\",\"dateModified\":\"2026-03-27T11:42:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/68f8340395086b417feb15b21211bf8c\"},\"description\":\"Looking for good ActiveRecord methods in Rails 6? Here are some ActiveRecord methods that can ease your coding process. Read More:\",\"breadcrumb\":{\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg\",\"width\":1920,\"height\":1280,\"caption\":\"ActiveRecord Changes In Rails 6\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.botreetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Notable ActiveRecord Changes in Rails 6 &#8211; Part 3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/\",\"name\":\"BoTree Technologies\",\"description\":\"Committed to inspire generation.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/68f8340395086b417feb15b21211bf8c\",\"name\":\"Naiya Shah\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/naiya-shah-150x150.png\",\"url\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/naiya-shah-150x150.png\",\"contentUrl\":\"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/naiya-shah-150x150.png\",\"caption\":\"Naiya Shah\"},\"description\":\"Naiya is a Ruby on Rails Developer. She developes applications with optimization and clean code with full Rspec coverage. She works in Javascript as well and she digs into anything new really quickly and comes up with a solution. Her leisure activities include travelling and watching movies.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Notable ActiveRecord Changes In Rails 6 - Part 3- BoTree Technologies","description":"Looking for good ActiveRecord methods in Rails 6? Here are some ActiveRecord methods that can ease your coding process. Read More:","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/","og_locale":"en_US","og_type":"article","og_title":"Notable ActiveRecord Changes In Rails 6 - Part 3- BoTree Technologies","og_description":"Looking for good ActiveRecord methods in Rails 6? Here are some ActiveRecord methods that can ease your coding process. Read More:","og_url":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/","og_site_name":"BoTree Technologies","article_publisher":"https:\/\/www.facebook.com\/BoTreeTechnologies\/","article_published_time":"2019-10-22T06:27:01+00:00","article_modified_time":"2026-03-27T11:42:38+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg","type":"image\/jpeg"}],"author":"Naiya Shah","twitter_card":"summary_large_image","twitter_creator":"@BoTreeTech","twitter_site":"@BoTreeTech","twitter_misc":{"Written by":"Naiya Shah","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#article","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/"},"author":{"name":"Naiya Shah","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/68f8340395086b417feb15b21211bf8c"},"headline":"Notable ActiveRecord Changes in Rails 6 &#8211; Part 3","datePublished":"2019-10-22T06:27:01+00:00","dateModified":"2026-03-27T11:42:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/"},"wordCount":388,"commentCount":7,"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg","articleSection":["Ruby on Rails","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/","url":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/","name":"Notable ActiveRecord Changes In Rails 6 - Part 3- BoTree Technologies","isPartOf":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage"},"image":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage"},"thumbnailUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg","datePublished":"2019-10-22T06:27:01+00:00","dateModified":"2026-03-27T11:42:38+00:00","author":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/68f8340395086b417feb15b21211bf8c"},"description":"Looking for good ActiveRecord methods in Rails 6? Here are some ActiveRecord methods that can ease your coding process. Read More:","breadcrumb":{"@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#primaryimage","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2019\/10\/active-record-changes-in-rails-6.jpg","width":1920,"height":1280,"caption":"ActiveRecord Changes In Rails 6"},{"@type":"BreadcrumbList","@id":"https:\/\/www.botreetechnologies.com\/blog\/notable-activerecord-changes-in-rails-6-part-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.botreetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Notable ActiveRecord Changes in Rails 6 &#8211; Part 3"}]},{"@type":"WebSite","@id":"https:\/\/www.botreetechnologies.com\/blog\/#website","url":"https:\/\/www.botreetechnologies.com\/blog\/","name":"BoTree Technologies","description":"Committed to inspire generation.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.botreetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.botreetechnologies.com\/blog\/#\/schema\/person\/68f8340395086b417feb15b21211bf8c","name":"Naiya Shah","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/naiya-shah-150x150.png","url":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/naiya-shah-150x150.png","contentUrl":"https:\/\/www.botreetechnologies.com\/blog\/wp-content\/uploads\/2020\/10\/naiya-shah-150x150.png","caption":"Naiya Shah"},"description":"Naiya is a Ruby on Rails Developer. She developes applications with optimization and clean code with full Rspec coverage. She works in Javascript as well and she digs into anything new really quickly and comes up with a solution. Her leisure activities include travelling and watching movies."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=8003"}],"version-history":[{"count":2,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8003\/revisions"}],"predecessor-version":[{"id":16333,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/8003\/revisions\/16333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media\/13384"}],"wp:attachment":[{"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=8003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=8003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.botreetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=8003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}