add task for sowing the development seeds
This commit is contained in:
parent
b708319c3b
commit
e3a7996591
1 changed files with 9 additions and 0 deletions
9
lib/tasks/devseed.rake
Normal file
9
lib/tasks/devseed.rake
Normal 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
|
||||
|
Loading…
Reference in a new issue