【RoR】Ruby on Rails Part12
■ このスレッドは過去ログ倉庫に格納されています
0208143
2011/08/05(金) 13:05:10.41ID:kWLQpcrd完成したので、DBをPostgreに移行しようと思い、yaml_dbというプラグインで
rake db:load RAILS_ENV=development
とし、db/data.yamlファイルを作成しました。
config/database.yamlを
development:
adapter: postgresql
encoding: unicode
database: vegetables_development
pool: 5
username: hoge
password: fuga
とし、
Postgre上でDB、vegetables_development(同test同production)を作成。
rake db:load RAILS_ENV=development
を実行すると、
rake aborted! PGError: ERROR: relation "users" does not exist
というエラーが出ます。(この"users"というのはログイン認証用のTableです)
rake db:migrateを実行しても同じです。
別のRailsを作って、スカッフォード→db:migrateしたら正常に動くので
Postgre⇔Rails間は正常に動いていると思います。
rails2.3.8
rake0.8.7
pg0.11
■ このスレッドは過去ログ倉庫に格納されています