Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • how to do adpater settings in rails for postgresql database ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 279
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: