# ActiveRecord lifecycle

**URL:** <https://www.ruby-forum.com/t/activerecord-lifecycle/133335>\
**Category:** Rails\
**Created:** [March 30, 2008, 11:00am UTC](https://www.ruby-forum.com/t/activerecord-lifecycle/133335 "2008-03-30T11:00:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Col\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Post date:** [March 30, 2008, 11:00am UTC](https://www.ruby-forum.com/t/activerecord-lifecycle/133335/1 "2008-03-30T11:00:57Z")

</div>

Can someone point me a where the active record lifecycle. It’s  
discussed in the docs on the callbacks, but it’s never actually  
defined there. I just want to know what happens when.

---

<div class="post-metadata">

**Author:** ![Col\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Post date:** [March 31, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/activerecord-lifecycle/133335/2 "2008-03-31T21:30:10Z")

</div>

On Mar 30, 10:00 am, Col W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Can someone point me a where the active record lifecycle. It’s  
> discussed in the docs on the callbacks, but it’s never actually  
> defined there. I just want to know what happens when.

That should have been:

Can someone point me a where the docs for the active record lifecycle  
are. Anyone?

---

<div class="post-metadata">

**Author:** ![Col\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Post date:** [March 31, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/activerecord-lifecycle/133335/3 "2008-03-31T22:55:15Z")

</div>

Col W. wrote:

> Can someone point me a where the docs for the active record lifecycle  
> are. Anyone?

Does this help?

> **[ActiveRecord::Callbacks](https://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html)**
>
> Active Record Callbacks Callbacks are hooks into the life cycle of an Active Record object that allow you to trigger logic before or after a change in the object state.

---

<div class="post-metadata">

**Author:** ![Col\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Post date:** [April 2, 2008, 11:57am UTC](https://www.ruby-forum.com/t/activerecord-lifecycle/133335/4 "2008-04-02T11:57:07Z")

</div>

Well it does once I read it properly. Thanks.

On 31 Mar, 21:55, James B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
