# ActiveRecord::Base class considered as module

**URL:** <https://www.ruby-forum.com/t/activerecord-base-class-considered-as-module/158643>\
**Category:** Rails\
**Created:** [January 26, 2009, 11:36am UTC](https://www.ruby-forum.com/t/activerecord-base-class-considered-as-module/158643 "2009-01-26T11:36:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [January 26, 2009, 11:36am UTC](https://www.ruby-forum.com/t/activerecord-base-class-considered-as-module/158643/1 "2009-01-26T11:36:21Z")

</div>

Hello,

I’m trying to upgrade a rails app with an old frozen rails version  
(1.1.6).  
I got an error each time i’m calling an active record model because it  
considers it as a module.

anyone got an idea how to fix it?

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [January 26, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/activerecord-base-class-considered-as-module/158643/2 "2009-01-26T14:40:33Z")

</div>

On Jan 26, 2009, at 5:35 AM, jney wrote:

> Hello,
> 
> I’m trying to upgrade a rails app with an old frozen rails version  
> (1.1.6).  
> I got an error each time i’m calling an active record model because it  
> considers it as a module.
> 
> anyone got an idea how to fix it?

The client that I had with a 1.1.6 app imploded before I needed to  
think about Rails 2.x, but the recommended path from 1.x to 2.x is to  
first get to 1.2.6 and fix all the deprecation warnings (which you’d  
see when you run all the tests, right?). Only when you have a “clean”  
1.2.6 app should you move to 2.x (and I’d think there might be some  
minor pain going from 2.0 to 2.2 since I’ve run into at least one  
newer plugin that works with 2.2, but not with 2.0).

Good luck,  
-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
