You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting this error when I run it within my api engine:
.../activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:878:in `retrieve_connection': No connection pool for ActiveRecord::Base (ActiveRecord::ConnectionNotEstablished)
from .../activerecord/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
from .../activerecord/lib/active_record/connection_handling.rb:87:in `connection'
from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:154:in `database_name'
from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:136:in `postgres?'
from /devise_token_auth/lib/generators/devise_token_auth/install_generator.rb:132:in `json_supported_database?'
from (erb):43:in `migration_template'
i believe this is because the base directory doesn't have a config/database.yml file (because it is actually kept at ./spec/dummy/config/database.yml).
i tried monkey around with it to get it to work, but I eventually gave up and just made json_supported_database? always return true
The text was updated successfully, but these errors were encountered:
getting this error when I run it within my api engine:
config/database.yml
file (because it is actually kept at./spec/dummy/config/database.yml
).json_supported_database?
always returntrue
The text was updated successfully, but these errors were encountered: