rake test走らしたら下記のエラーが出てきた・・・。 ActiveRecord::NoDatabaseError: FATAL: database "myapp1" does not exist んでpostgresSQLでコマンドラインから強引に createdb myapp1 $ rails generate migration add_index_to_users_email ってすると conflict db/migrate/20160416011335_add_index_to_users_email.rb なので該当のファイル消して もう一回 $ rails generate migration add_index_to_users_email んでrake test しても解決しない。 

rake test走らしたら下記のエラーが出てきた・・・。 ActiveRecord::NoDatabaseError: FATAL: database "myapp1" does not exist...
=======================================
rake test走らしたら下記のエラーが出てきた・・・。

ActiveRecord::NoDatabaseError: FATAL: database "myapp1" does not exist

んでpostgresSQLでコマンドラインから強引に
createdb myapp1

$ rails generate migration add_index_to_users_email
ってすると
conflict db/migrate/20160416011335_add_index_to_users_email.rb

なので該当のファイル消して
もう一回
$ rails generate migration add_index_to_users_email

んでrake test しても解決しない。



http://ift.tt/1abnmbU
April 16, 2016 at 10:17AM

コメント