---
title: "Discussion on \"Rails 8.1: Using only_columns to Control Which Database Columns Active Record Uses\" | Hashnode"
description: "Discussion on \"Rails 8.1: Using only_columns to Control Which Database Columns Active Record Uses\". Learn how Rails 8.1's only_columns works, how to inspect model columns in the Rails console, and how it differs from ignored_columns."
url: "https://hashnode.com/posts/rails-8-1-using-only-columns-to-control-which-database-columns-active-record-uses/6ae4982394a4cb6c1f605e39"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rails 8.1: Using only\_columns to Control Which Database Columns Active Record Uses](https://railswithyashika.hashnode.dev/rails-8-1-using-only-columns-to-control-which-database-columns-active-record-uses?utm_source=hashnode&utm_medium=feed)

Learn how Rails 8.1's only\_columns works, how to inspect model columns in the Rails console, and how it differs from ignored\_columns.

Oct 30 · 7 min read · railswithyashika.hashnode.dev  
Read the article

-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)
-   [#ruby](https://hashnode.com/tag/ruby)
-   [#database](https://hashnode.com/tag/database)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Yashika Vijayvargiya](https://hashnode.com/@railswithyashika)

@railswithyashika · Pune, India

  
[View profile](https://hashnode.com/@railswithyashika)

Senior Ruby on Rails Engineer | React | System Design | Sharing Real-World Engineering Lessons

Senior Ruby on Rails Engineer sharing practical insights on Rails, React, system design, performance optimization,. My goal is to simplify complex concepts through real-world examples and hands-on experiences.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
