class CreateAccepts < ActiveRecord::Migration[4.2] def change create_table :accepts do |t| t.integer :basket_id t.integer :item_id t.integer :librarian_id t.timestamps end add_index :accepts, :basket_id add_index :accepts, :item_id end end