Sha256: 734d8f4ffe57f3a8b04a1f58a92d82a884c73e18547e6962bdb83489bd8bb247
Contents?: true
Size: 479 Bytes
Versions: 5
Compression:
Stored size: 479 Bytes
Contents
namespace :portfolio do desc "Creates default admin user for portfolio management" task :create_admin_user, [:email, :password] => :environment do |t, args| puts "Creating new portfolio admin user with email #{args.email}" user = Portfolio::AdminUser.create email: args.email, password: args.password, password_confirmation: args.password unless user.valid? puts ">>> Error creating admin user: #{user.errors.full_messages.to_sentence}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems