Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (20 sloc) 0.537 kb
# Create admin user
admin_user = User.find_or_create_by_email('admin@email.com') do |u|
u.password = u.password_confirmation = 'password'
u.admin = true
end
admin_user.save!
# Create first user account
user = User.find_or_create_by_email('user@email.com') do |u|
u.password = u.password_confirmation = 'password'
end
user.save!
if Rails.env.development?
20.times { Factory.create(:user) }
20.times { Factory.create(:post) }
end
[:about, :contact].each do |name|
StaticPage.create! do |page|
page.name = name
end
end
Jump to Line
Something went wrong with that request. Please try again.