9 lines
261 B
Ruby
9 lines
261 B
Ruby
unless Rails.env.production?
|
|
require 'factory_girl'
|
|
require 'faker'
|
|
Dir[Rails.root.join("spec/factories/*.rb")].each {|f| require f}
|
|
task :sow => :environment do
|
|
FactoryGirl.create_list(:user, 20)
|
|
FactoryGirl.create_list(:product, 20)
|
|
end
|
|
end
|