---
title: "#active-record articles | Hashnode"
description: "Explore 10 articles tagged #active-record on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/active-record"
---

Tag

# #active-record

10 posts · 1 followers

[Bianca Correia](https://hashnode.com/@biancacorreia) · [Feb 9](https://hashnode.com/posts/what-i-learned-about-active-record-migrations-in-ruby/698a711d1460c4354541c312)

### [What I Learned About Active Record Migrations in Ruby](https://biancacorreia.hashnode.dev/what-i-learned-about-active-record-migrations-in-ruby?utm_source=hashnode&utm_medium=feed)

In this exercise, I learned how to use Active Record migrations to build the structure of a database using Ruby. Instead of writing SQL directly, migrations allow us to describe our database tables an

3 min read · [biancacorreia.hashnode.dev](https://biancacorreia.hashnode.dev/what-i-learned-about-active-record-migrations-in-ruby?utm_source=hashnode&utm_medium=feed)

[Luis Gustavo Ganimi](https://hashnode.com/@luguin) · [Nov 25, 2024](https://hashnode.com/posts/optimizing-database-performance-in-ruby-on-rails/6743c0d8c75a073d6ecba2bc)

### [Optimizing Database Performance in Ruby on Rails](https://luisgustavoganimi.hashnode.dev/optimizing-database-performance-in-ruby-on-rails?utm_source=hashnode&utm_medium=feed)

As applications grow in scale, database performance often becomes a critical bottleneck. Ruby on Rails, with its ActiveRecord ORM, offers powerful tools to simplify database interactions. However, without proper optimizations, these conveniences can ...

5 min read · [luisgustavoganimi.hashnode.dev](https://luisgustavoganimi.hashnode.dev/optimizing-database-performance-in-ruby-on-rails?utm_source=hashnode&utm_medium=feed)

[Julián Pinzón Eslava](https://hashnode.com/@pinzonjulian) · [Nov 7, 2024](https://hashnode.com/posts/customising-single-table-inheritance-mapping-in-active-record/672cb9fb9e77922d12c3e95d)

### [Customising Single Table Inheritance mapping in Active Record](https://dev.julianpinzon.com/customising-single-table-inheritance-mapping-in-active-record?utm_source=hashnode&utm_medium=feed)

A guide on how to teach Active Record models to use different values when using Single Table Inheritance

4 min read · [dev.julianpinzon.com](https://dev.julianpinzon.com/customising-single-table-inheritance-mapping-in-active-record?utm_source=hashnode&utm_medium=feed)

[Renan Porto](https://hashnode.com/@tota1099) · [Oct 24, 2024](https://hashnode.com/posts/rails-como-transformar-seus-modelos-para-json/671aa3d5cb09bfe8097e3d62)

### [Rails - Como transformar seus modelos para JSON](https://tota1099.hashnode.dev/rails-como-transformar-seus-modelos-para-json?utm_source=hashnode&utm_medium=feed)

Transformar modelos rails para JSON é fácil. Mas e se eles precisarem serem validados antes? Será que o JSON será o que você espera?

1 min read · [tota1099.hashnode.dev](https://tota1099.hashnode.dev/rails-como-transformar-seus-modelos-para-json?utm_source=hashnode&utm_medium=feed)

[Lucian Ghinda](https://hashnode.com/@lucianghinda) · [Jun 28, 2023](https://hashnode.com/posts/rubys-range-literals-and-their-effect-on-rails-active-record-queries/649c000a4fc69efb32394a88)

### [Ruby's range literals and their effect on Rails Active Record queries](https://codeandgit.hashnode.dev/rubys-range-literals-and-their-effect-on-rails-active-record-queries?utm_source=hashnode&utm_medium=feed)

Learn about the difference between inclusive and exclusive end ranges and the SQL queries each choice produces

3 min read · [codeandgit.hashnode.dev](https://codeandgit.hashnode.dev/rubys-range-literals-and-their-effect-on-rails-active-record-queries?utm_source=hashnode&utm_medium=feed)

[Dhaval Singh](https://hashnode.com/@DhavalSingh) · [Sep 6, 2021](https://hashnode.com/posts/jsonb-rails-pluck/65377d203e0c6fcb2e1b43c5)

### [TIL #1 : How to pluck jsonb fileds in Rails](https://www.dsdev.in/jsonb-rails-pluck?utm_source=hashnode&utm_medium=feed)

If you have a jsonb field in your Active record object and you want some nested value you can use pluck Example: Lets say your Users model has a jsonb attribuite metadata which has a nested key location which in turn has city you can get the value of...

1 min read · [dsdev.in](https://www.dsdev.in/jsonb-rails-pluck?utm_source=hashnode&utm_medium=feed)
