diff --git a/lib/field_test/experiment.rb b/lib/field_test/experiment.rb index 7f1240a..7bcce14 100644 --- a/lib/field_test/experiment.rb +++ b/lib/field_test/experiment.rb @@ -116,9 +116,9 @@ def results(goal: nil) column = if FieldTest.legacy_participants :participant - elsif adapter_name =~ /postg/i # postgres + elsif adapter_name.match?(/postg/i) # postgres "(participant_type, participant_id)" - elsif adapter_name =~ /mysql/i + elsif adapter_name.match?(/mysql/i) "COALESCE(participant_type, ''), participant_id" else # SQLite supports single column