0
我在我的應用程序使用的ROR
這裏使用pg
PG是database.yml文件
default: &default
adapter: postgresql
pool: 5
timeout: 5000
development:
<<: *default
database: testing_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db/test.sqlite3
production:
<<: *default
database: db/production.sqlite3
當我跑rake db:create
這是我得到:
PG::SyntaxError: ERROR: syntax error at or near "."
LINE 1: CREATE DATABASE "db/test"."sqlite3" ENCODING = 'utf8'
^
: CREATE DATABASE "db/test"."sqlite3" ENCODING = 'utf8'
如何我解決這個問題嗎?
嘿感謝。足夠快的時間過後,會接受你的回答。 – user273072545345