---
title: "Discussion on \"How to skip all callbacks for all models in Rails\" | Hashnode"
description: "Discussion on \"How to skip all callbacks for all models in Rails\". Different approaches for avoiding all callbacks on a Rails Active Record model"
url: "https://hashnode.com/posts/how-to-skip-all-callbacks-for-all-models-in-rails/65388d84e8cbc7df1018d212"
---

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

Discussion

# [How to skip all callbacks for all models in Rails](https://codeandgit.hashnode.dev/how-to-skip-all-callbacks-for-all-models-in-rails?utm_source=hashnode&utm_medium=feed)

Different approaches for avoiding all callbacks on a Rails Active Record model

Oct 25, 2023 · 7 min read · codeandgit.hashnode.dev  
Updated Jan 11, 2024  
Read the article

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

## Written by

[Lucian Ghinda](https://hashnode.com/@lucianghinda)

@lucianghinda · Europe

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

Senior Product Engineer

Senior Product Engineer, working in Ruby and Rails. Passionate about idea generation, creativity, and programming. I curate the Short Ruby Newsletter.

## Responses 1

Markdown supported · ⌘↵ to post

[Hassan Latif](https://hashnode.com/@Hassan787)

[Jun 26, 2024](https://hashnode.com/posts/how-to-skip-all-callbacks-for-all-models-in-rails/65388d84e8cbc7df1018d212/comment/667c8b746c98acbcc3d37e71)

Approach 3 is not correct for production applications. As we know that production applications is multi threaded and handles multiple requests at a single time. So If I have used this approach for a model lets say User and lets say my piece of code is running for one thread and same model is being called from another call then its validations and callbacks will be skipped for the second call as well. This approach can work for single threaded applications but this is not thread safe approach.

[Lucian Ghinda](https://hashnode.com/@lucianghinda)

[Jul 9, 2024](https://hashnode.com/posts/how-to-skip-all-callbacks-for-all-models-in-rails/65388d84e8cbc7df1018d212/comment/667c8b746c98acbcc3d37e71#reply-668d233efae1710919572c51)

Yes, I think in the case of multi-thread that approach will not work. I also added to it a big warning :) so it would not be an approach that I will reach for easily.
