creating ttl index on history colls

Please, make this line shorter (ideally, all lines should be up to 80 chars long). https://www.dartlang.org/articles/style-guide/#avoid-lines-longer-than-80-characters