Updated transition_model.rb template to include serialize :metadata

A small tweak that'll stop it borking when using the ActiveRecord adapter.