Database.yml question

When you create a project, it create the file database.yml. on that
file, the name of the project is followed by _deployment. If you remove
that _deployement, do we need to remove it somewhere in another file?

I create a project, removed the _deployement and created my database
using the name of the project but when I execute the project, it say
that it cannot find the database with the name
‘projectname’_deployement.

Any clues will be welcome,

thanks!

Patrice Fiset wrote:

When you create a project, it create the file database.yml. on that
file, the name of the project is followed by _deployment. If you remove
that _deployement, do we need to remove it somewhere in another file?

I create a project, removed the _deployement and created my database
using the name of the project but when I execute the project, it say
that it cannot find the database with the name
‘projectname’_deployement.

Any clues will be welcome,

thanks!

I assume you mean that you edited the name of your database, not the
name of your environment. Also, you must restart the webserver to pick
up any changes in the database.yml file.

Perhaps you should post your database.yml (minus passwords of course) to
see what hte problem is.

Thank you much Alex,

That was the problem.

All good now.

Patrice
“Ruby on Rails newb but still seeing the potential!”

Alex W. wrote:

Patrice Fiset wrote:

When you create a project, it create the file database.yml. on that
file, the name of the project is followed by _deployment. If you remove
that _deployement, do we need to remove it somewhere in another file?

I create a project, removed the _deployement and created my database
using the name of the project but when I execute the project, it say
that it cannot find the database with the name
‘projectname’_deployement.

Any clues will be welcome,

thanks!

I assume you mean that you edited the name of your database, not the
name of your environment. Also, you must restart the webserver to pick
up any changes in the database.yml file.

Perhaps you should post your database.yml (minus passwords of course) to
see what hte problem is.