@@ -31,8 +31,8 @@ pub async fn seed_database(db: &DatabaseConnection) {
31
31
32
32
let _admin_user: users:: ActiveModel = users:: ActiveModel {
33
33
email : Set ( "[email protected] " . to_owned ( ) ) ,
34
- first_name : Set ( Some ( "Admin" . to_owned ( ) ) ) ,
35
- last_name : Set ( Some ( "User" . to_owned ( ) ) ) ,
34
+ first_name : Set ( "Admin" . to_owned ( ) ) ,
35
+ last_name : Set ( "User" . to_owned ( ) ) ,
36
36
display_name : Set ( Some ( "Admin User" . to_owned ( ) ) ) ,
37
37
password : Set ( generate_hash ( "dLxNxnjn&b!2sqkwFbb4s8jX" ) ) ,
38
38
github_username : Set ( None ) ,
@@ -47,8 +47,8 @@ pub async fn seed_database(db: &DatabaseConnection) {
47
47
48
48
let jim_hodapp: users:: ActiveModel = users:: ActiveModel {
49
49
email : Set ( "[email protected] " . to_owned ( ) ) ,
50
- first_name : Set ( Some ( "Jim" . to_owned ( ) ) ) ,
51
- last_name : Set ( Some ( "Hodapp" . to_owned ( ) ) ) ,
50
+ first_name : Set ( "Jim" . to_owned ( ) ) ,
51
+ last_name : Set ( "Hodapp" . to_owned ( ) ) ,
52
52
display_name : Set ( Some ( "Jim H" . to_owned ( ) ) ) ,
53
53
password : Set ( generate_hash ( "password" ) ) ,
54
54
github_username : Set ( Some ( "jhodapp" . to_owned ( ) ) ) ,
@@ -63,8 +63,8 @@ pub async fn seed_database(db: &DatabaseConnection) {
63
63
64
64
let caleb_bourg: users:: ActiveModel = users:: ActiveModel {
65
65
email : Set ( "[email protected] " . to_owned ( ) ) ,
66
- first_name : Set ( Some ( "Caleb" . to_owned ( ) ) ) ,
67
- last_name : Set ( Some ( "Bourg" . to_owned ( ) ) ) ,
66
+ first_name : Set ( "Caleb" . to_owned ( ) ) ,
67
+ last_name : Set ( "Bourg" . to_owned ( ) ) ,
68
68
display_name : Set ( Some ( "cbourg2" . to_owned ( ) ) ) ,
69
69
password : Set ( generate_hash ( "password" ) ) ,
70
70
github_username : Set ( Some ( "calebbourg" . to_owned ( ) ) ) ,
@@ -79,8 +79,8 @@ pub async fn seed_database(db: &DatabaseConnection) {
79
79
80
80
let other_user: users:: ActiveModel = users:: ActiveModel {
81
81
email : Set ( "[email protected] " . to_owned ( ) ) ,
82
- first_name : Set ( Some ( "Other" . to_owned ( ) ) ) ,
83
- last_name : Set ( Some ( "User" . to_owned ( ) ) ) ,
82
+ first_name : Set ( "Other" . to_owned ( ) ) ,
83
+ last_name : Set ( "User" . to_owned ( ) ) ,
84
84
display_name : Set ( Some ( "Other U." . to_owned ( ) ) ) ,
85
85
password : Set ( generate_hash ( "password" ) ) ,
86
86
github_username : Set ( None ) ,
0 commit comments