0

There's a Rails 3.2.3 web application which doesn't use any database. But in spite of that if I use the gem 'sqllite3' in GemFile I works perfect. But if I use gem 'pg' in that file it throws an error

ActiveRecord::ConnectionNotEstablished

Of course, I use different versions of database.yml when I use postgreSql or SqlLite3.

But I definitely don't use any database.

Why is it happening? What should I do to solve it? And how to disable using databases?

Alexandre
  • 13,030
  • 35
  • 114
  • 173
  • possible duplicate of [Rails 3 - how do I avoid database altogether?](http://stackoverflow.com/questions/3954307/rails-3-how-do-i-avoid-database-altogether) – Brad Werth Apr 30 '13 at 19:37

1 Answers1

1

See the SO question here for how to bypass using a database. It's a little more work than just setting a flag.

Community
  • 1
  • 1
Dty
  • 12,253
  • 6
  • 43
  • 61