Sha256: 31e9fcb78b9eb5c3ea6efb73b2e431c7e413ca0c125925141a5da925ec761b04
Contents?: true
Size: 558 Bytes
Versions: 3
Compression:
Stored size: 558 Bytes
Contents
namespace :blogr do desc "Create a default admin user" task create_default_user: :environment do Blogr::User.create email: "admin@example.com", username: "admin", password: "password", password_confirmation: "password", first_name: "Default", last_name: "Admin" puts puts "Created default admin user - Email: admin@example.com / Password: password" puts end desc "Run the key setup tasks for a new application" task setup: :environment do Rake::Task["blogr:create_default_user"].invoke if Blogr::User.all.empty? end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blogr-0.0.8 | lib/tasks/blogr.rake |
blogr-0.0.7 | lib/tasks/blogr.rake |
blogr-0.0.6 | lib/tasks/blogr.rake |