model.last method addded like ActiveRecord in rails