how to run or setup the project inititally in rails :: how to change the database



Add the below code and change the database name and change the username and the password

.............................................................................................................


 development:

  adapter: postgresql

  encoding: unicode

  pool: 2

  database: sunrise_development2

  username: postgres

  password: postgres

  host: localhost

  port: 5432

  timeout: 5000


test: &test

  adapter: postgresql

  encoding: unicode

  pool: 2

  database: sunrise_test

  username: postgres

  password: postgres

  host: localhost

  port: 5432

  timeout: 5000


production:

  adapter: postgresql

  encoding: unicode

  pool: 2

  database: sunrise_production

  username: postgres

  password: postgres

  host: localhost

  port: 5432

  timeout: 5000


# Warning: The database defined as "test" will be erased and

# re-generated from your development database when you run "rake".

# Do not set this db to the same as development or production.

# test: &test

#   adapter: sqlite3

#   database: db/test.sqlite3

#   pool: 5

#   timeout: 5000


# production:

#   adapter: sqlite3

#   database: db/production.sqlite3

#   pool: 5

#   timeout: 5000


cucumber:

  <<: *test


Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5