tap/lib/tasks/devseeds.rake
2016-02-02 15:20:04 +01:00

8 lines
196 B
Ruby

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