1 2 3 4 5 6 7 8 9
FactoryGirl.define do factory :chat_team, class: ChatTeam do sequence :team_id do |n| "abcdefghijklm#{n}" end namespace factory: :group end end