14 lines
319 B
Ruby
14 lines
319 B
Ruby
if Rails.env.development?
|
|
require 'factory_girl'
|
|
|
|
namespace :dev do
|
|
desc 'Seed data for development environment'
|
|
task prime: 'db:setup' do
|
|
FactoryGirl.find_definitions
|
|
include FactoryGirl::Syntax::Methods
|
|
|
|
# create(:user, email: 'user@example.com', password: 'password')
|
|
end
|
|
end
|
|
end
|