I'm building a Rails project on postgresql, but when I
rake db:migrate
I get the following error:
permission denied to create extension "uuid-ossp"
Here's how my database.yml looks like:
app_common: &app_common adapter: postgresql host: 127.0.0.1 port: 5432 encoding: unicode pool: 5 username: root password:
The uuid-ossp module provides functions to generate universally unique identifiers (UUIDs) using one of several standard algorithms. There are also functions to produce certain special UUID constants. This module is only necessary for special requirements beyond what is available in core PostgreSQL.
Description. CREATE EXTENSION loads a new extension into the current database. There must not be an extension of the same name already loaded. Loading an extension essentially amounts to running the extension's script file.
Figured it out, I need to postegresql and change the root role to superuser:
$psql ALTER USER root WITH SUPERUSER;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With