tap/lib/tasks/devseeds.rake

9 lines
194 B
Ruby
Raw Normal View History

2015-09-17 14:05:33 +02:00
unless Rails.env.production?
require 'factory_girl'
require 'faker'
task :sow => :environment do
FactoryGirl.create_list(:user, 20)
FactoryGirl.create_list(:product, 20)
end
end