demarches-normaliennes/db/seeds.rb

16 lines
693 B
Ruby
Raw Normal View History

2015-08-10 11:05:06 +02:00
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
2015-08-10 11:05:06 +02:00
#
# Create an initial user who can use all roles
2015-08-10 11:05:06 +02:00
#
default_user = "test@exemple.fr"
2018-09-26 17:51:06 +02:00
default_password = "this is a very complicated password !"
puts "Create test user '#{default_user}'"
Administration.create!(email: default_user, password: default_password)
Administrateur.create!(email: default_user, password: default_password)
Gestionnaire.create!(email: default_user, password: default_password)
User.create!(email: default_user, password: default_password, confirmed_at: DateTime.now)