Try changing
var rm = new RoleManager<IdentityRole>(
new RoleStore<IdentityRole>(new ApplicationDbContext()));
to use the context that was passed into the Seed()
method, rather than creating a new one...
var rm = new RoleManager<IdentityRole>(
new RoleStore<IdentityRole>(context));