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.