Updated transition_model.rb template to include the serialize :metadata property