Do you have postgresql installed within your system? If not, then watch [Install postgresql](
[To see links please register here]
). After you successfully integrate **postgresql** into your system you can type something like that in your system terminal:
which psql
#=> /usr/bin/psql
After that you need to create a user and database in postgresql like this:
sudo su - postgres
psql
Then you can see the following within your terminal
postgres=#
Type there:
CREATE USER yourname WITH PASSWORD 'passwordhere';
CREATE DATABASE metals-directory_production WITH OWNER yourname;
GRANT ALL PRIVILEGES ON DATABASE metals-directory_production TO yourname;
After you do this, then you need to correct your `database.yml`. Probably you need something like that:
development:
adapter: postgresql
encoding: unicode
database: metals-directory_development
pool: 5
username: yourname
password: passwordhere ### password you have specified within psql
host: localhost
port: 5432 ### you can configure it in file postgresql.conf
Also if you have problems with postgresql it is good idea to check [pg_hba.conf](
[To see links please register here]
)