There are few steps for doing adapter settings:
1> inside your app go to app_name/config/locales/database.yml
default: &default
adapter: postgresql
pool: 5
timeout: 5000
username: postgres
password: 123456
development:
<<: *default
database: database_name_development
test:
<<: *default
database: database_name_testing
production:
<<: *default
database: database_name_production
2> then goto app_name/vendor/Gemfile and add gem 'pg' in the Gemfile.
3> then run install bundle in your terminal
for example:
alkasoun@alkasoun:~/ruby_projects/blog$ install bundle
0 Comment(s)