質問編集履歴
1
追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -56,6 +56,33 @@ | |
| 56 56 |  | 
| 57 57 | 
             
            ```
         | 
| 58 58 |  | 
| 59 | 
            +
            ```
         | 
| 60 | 
            +
            item.rb
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            class CreateItems < ActiveRecord::Migration[5.2]
         | 
| 63 | 
            +
              def change
         | 
| 64 | 
            +
                create_table :items do |t|
         | 
| 65 | 
            +
                  t.string :name,                                   null: false, index: true
         | 
| 66 | 
            +
                  t.integer :price,                                              null: false
         | 
| 67 | 
            +
                  t.text :description,                                           null: false
         | 
| 68 | 
            +
                  t.integer :condition
         | 
| 69 | 
            +
                 
         | 
| 70 | 
            +
                  t.integer :shipping_from,                                      null: false
         | 
| 71 | 
            +
                  t.integer :days_before_shipping,                               null: false
         | 
| 72 | 
            +
                  t.integer :shipping_method,                                    null: false
         | 
| 73 | 
            +
                  
         | 
| 74 | 
            +
                  t.integer :brand
         | 
| 75 | 
            +
                  t.integer :category
         | 
| 76 | 
            +
                  t.bigint  :buyer_id
         | 
| 77 | 
            +
                  t.references :user,            null: false, index: true, foreign_key: true
         | 
| 78 | 
            +
                  
         | 
| 79 | 
            +
                  t.timestamps
         | 
| 80 | 
            +
                end
         | 
| 81 | 
            +
              end
         | 
| 82 | 
            +
            end
         | 
| 83 | 
            +
             | 
| 84 | 
            +
            ```
         | 
| 85 | 
            +
             | 
| 59 86 | 
             
            ### 試したこと
         | 
| 60 87 |  | 
| 61 88 | 
             
            ```
         | 
