class AddDeviceToPlayers < ActiveRecord::Migration[8.1] def change # Coarse device class -- "mobile", "tablet" or "desktop" -- classified from # the User-Agent when the player starts. Nil for players created before this # existed, and for anything we cannot place. add_column :players, :device, :string add_index :players, :device end end