Skip to content

Instantly share code, notes, and snippets.

View Agsiegert's full-sized avatar

Antony Siegert Agsiegert

View GitHub Profile
@Agsiegert
Agsiegert / gist:7457492
Created November 13, 2013 22:17
seed.rb
require 'bcrypt'
unencrypted_password = "password"
encrypted_password = BCrypt::Password.create(unencrypted_password)
user = User.create([{full_name: "Franklin Webber", display_name: "Franky", password: unencrypted_password, password_confirmation: unencrypted_password, email: "demo+franklin@jumpstartlab.com" },
{full_name: "Jeff", display_name: "j3", password: unencrypted_password, password_confirmation: unencrypted_password, email: "demo+jeff@jumpstartlab.com"},
{full_name: "Katrina Owen", display_name: "kytrinyx", password: unencrypted_password, password_confirmation: unencrypted_password, email: "demo+katrina@jumpstartlab.com", admin_status: true }])
admin = User.create({full_name: "admin", display_name: "admin", password: unencrypted_password, password_confirmation: unencrypted_password, email: "admin@example.com", admin_status: true })