David Susco | 24 May 2011 23:06
Picon

Re: anyone run into this activerecord error before?

Apparently its a known issue:

http://webcache.googleusercontent.com/search?q=cache:cS8js8AYQHgJ:https://rails.lighthouseapp.com/projects/8994/tickets/6233

Looks like I get to migrate to has_many :through. :P

Dave

On Tue, May 24, 2011 at 2:49 PM, Jeremy McAnally
<jeremymcanally@...> wrote:
> It's likely trying to get the columns or something like that and
> doesn't have a connection to do so.
>
> --Jeremy
>
> On Tue, May 24, 2011 at 2:21 PM, Magnus Holm <judofyr@...> wrote:
>> It seems that you need to establish a connection *before* you write
>> your models. Doesn't seem to be a way around it :/
>>
>> // Magnus Holm
>>
>> On Tue, May 24, 2011 at 19:53, David Susco <dsusco@...> wrote:
>>> Not really Camping specific, but I've always had better luck asking on
>>> this list than any of the rails ones. I'm trying to upgrade from
>>> activerecord 2.3.8 to 3.0.7 and I'm getting a
>>> ActiveRecord::ConnectionNotEstablished error when the
>>> has_and_belongs_to_many association is being used.
>>>
>>> A simple example is attached, and the stack follows. Has anyone run
>>> into this before?
(Continue reading)


Gmane