class AddUserIdToSessions < ActiveRecord::Migration def change add_column :sessions, :user_id, :integer, index: true end end