You must establish a database connection before using acts_as_authentic

You must establish a database connection before using acts_as_authentic

Today I had some fun when I was deploying my rails application to jenkins. When I tried to

rake test

I got an exception saying

You must establish a database connection before using acts_as_authentic

So I thought: Hey, then I will

rake db:schema:load

first. But I got the same error message again.

After doing some research I discovered that authlogic was expecting the users table to exist. So I created a dummy users table with the dbconsole:

CREATE TABLE users (email varchar(255);

Now I was able to load the schema. Funny. Not.

Über den Autor

Bewertet mit durchschnittlich
4.8
Sternen von
67
Lesern.

fortytools by zvoove für Ihre Branche

No items found.

Jetzt 30 Tage kostenlos und unverbindlich testen

Alle Funktionen stehen uneingeschränkt zur Verfügung. Keine Software-Installation, keine Probleme mit Updates. Einfach via Browser Einloggen und fertig. Von jedem internetfähigen Gerät.
Heute kostenlos testen!
Nutzerbewertung: 4,8 von 5 Sternen