質問編集履歴

1

コードの重複

2022/06/21 00:21

投稿

umigame_Rails
umigame_Rails

スコア66

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
  class CreateComments < ActiveRecord::Migration[7.0]
11
11
  def change
12
12
  create_table :comments do |t|
13
- t.references :tweet, null: false, foreign_key: true
13
+
14
14
 
15
15
  t.string :image
16
16
  t.integer :user_id