質問するログイン新規登録

回答編集履歴

1

コピペミス

2021/03/14 22:44

投稿

neko_daisuki
neko_daisuki

スコア2090

answer CHANGED
@@ -3,7 +3,7 @@
3
3
  [マイグレーションを作成する](https://railsguides.jp/active_record_migrations.html#%E3%83%9E%E3%82%A4%E3%82%B0%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B)
4
4
 
5
5
  20210314114705_add_user_id_to_posts.rb
6
- 20210314061412_create_posts.rb
6
+ 20210514061412_create_posts.rb
7
7
 
8
8
  create_posts.rb より、add_user_id_to_posts.rb が先に実行されてるように見えます。
9
9
  なので、`Mysql2::Error: Table 'app_name_development.posts' doesn't exist`