add task for sowing the development seeds

This commit is contained in:
Felix Van der Jeugt 2015-09-08 16:45:46 +02:00
parent b708319c3b
commit e3a7996591

9
lib/tasks/devseed.rake Normal file
View file

@ -0,0 +1,9 @@
require 'factory_girl'
task :sow => :environment do
users = FactoryGirl.create_list(:user, 20)
100.times do
FactoryGirl.create :transaction, debtor: users.sample, creditor: users.sample
end
end