Specifying hierarchical Binomial model when individuals have varying numbers of trials?

You are right. And yes the two model is the same.