Sha256: 237a77624b9588694753b89f371348716bde91163fcff1c735dac063eee085e1
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
namespace :georgia do desc "Creates an Admin user to get started" task seed: :environment do first_name = ask("First name:") last_name = ask("Last name:") email = ask("Email:") password = ask("Password:") Georgia::User.create(first_name: first_name, last_name: last_name, email: email, password: password, password_confirmation: password) do |user| user.roles << Georgia::Role.all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.7.7 | lib/tasks/georgia.rake |
georgia-0.7.6 | lib/tasks/georgia.rake |