FactoryGirl.define do
  factory :patient do
    name 'New Patient'
    primary_phone '123-123-1234'
    spanish false
    created_by { FactoryGirl.create(:user) }
    initial_call_date { 2.days.ago }
  end
end

FactoryGirl.define do
  factory :patient do
    name 'New Patient'
    sequence(:primary_phone, 100) { |n| "127-#{n}-1111" } 
    spanish false
    created_by { FactoryGirl.create(:user) }
    initial_call_date { 2.days.ago }
  end
end

Update Patient factory to sequence phone numbers - necessary with uniqueness constraint on primary_phone
Update Patient factory to sequence phone numbers - necessary with uniqueness constraint on primary_phone
