1 2 3 4 5 6
class AddSessionIdToScores < ActiveRecord::Migration[8.0] def change add_column :scores, :session_id, :string add_index :scores, :session_id end end