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

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)