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

コメント

このブログの人気の投稿

投稿時間:2020-07-01 05:34:30 RSSフィード2020-07-01 05:00 分まとめ(37件)

投稿時間:2020-07-01 20:43:40 RSSフィード2020-07-01 20:00 分まとめ(81件)

投稿時間:2020-07-01 08:33:22 RSSフィード2020-07-01 08:00 分まとめ(49件)