I
I
int22h2013-03-05 12:27:27
Ruby on Rails
int22h, 2013-03-05 12:27:27

Bug or feature.......?

Let's say we have a ror project using the mysql database.
If the password written in the config is not correct, then after the command
rake db:create<br>
we will be asked for the password to mysql.
After entering the password, a database is created and the password for the database is changed to the one that is set in the config.
So I'm wondering if this is a bug or a feature?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
KeFA, 2013-03-05
@KeFA

Quite a logical decision from rails. Nefig in the config to prescribe the wrong password.

K
kirushik, 2013-03-06
@kirushik

This is of course a feature.
The task rake db:*is to always bring the database in line with what is declared in the config. Create schema tables, enable extensions. Make sure in the credentials.
Rake will never minify user-editable files. That is, out of three behaviors (getting sleep with an error / changing the password in database.yml/ changing the password in the database), the rezrabs chose the most expected, and therefore the most correct.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question