2011-12-06 100 views

回答

19

爲了記錄在案,把這樣的事情在你的.travis.yml

before_script: 
    - psql -c "CREATE USER skateparks WITH PASSWORD 'skateparks';" -U postgres 
12

database.yml有這樣的:

development: 
    adapter: postgresql 
    encoding: utf8 
    database: skateparks_development 
    username: skateparks 
    password: 
    template: template0 # Required for UTF8 encoding 

注意username: skateparks部分。從psql外殼

create role skateparks login 

:要麼丟棄或create the role喜歡的東西。

0

這爲我工作

從慶典...

createuser blog 

在psql提示

ALTER USER blog CREATEDB; 

my database.yml

development: 
    adapter: postgresql 
    encoding: unicode 
    database: blog_development 
    pool: 5 
    username: blog 
    password: