The document never promises that pattern-matching is supported inside `Assumptions`. (Though in some cases it does seem to be!) So the only stable way I can think of is as following:

    Subscript[g, i_][x_] := 
        ($Assumptions = Union[$Assumptions~Join~
         {{Subscript[m, i], Subscript[s, i]} ∈ Reals, Subscript[s, i] > 0}]; 
       Exp[-((x - Subscript[m, i])^2/(2 Subscript[s, i]))]/Sqrt[2 π Subscript[s, i]]);

    Simplify[Integrate[Subscript[g, i][x] Subscript[g, j][x], {x, -∞, ∞}]]