@@ -196,7 +196,7 @@ pub async fn seed_database(db: &DatabaseConnection) {
196
196
. await
197
197
. unwrap ( ) ;
198
198
199
- // In refactor_coaching , Jim is coaching Caleb.
199
+ // In Refactor Coaching organization , Jim is coaching Caleb.
200
200
let jim_caleb_coaching_relationship = coaching_relationships:: ActiveModel {
201
201
coach_id : Set ( jim_hodapp. id . clone ( ) . unwrap ( ) ) ,
202
202
coachee_id : Set ( caleb_bourg. id . clone ( ) . unwrap ( ) ) ,
@@ -237,7 +237,7 @@ pub async fn seed_database(db: &DatabaseConnection) {
237
237
. await
238
238
. unwrap ( ) ;
239
239
240
- // caleb is Coach
240
+ // Caleb is coach
241
241
coaching_sessions:: ActiveModel {
242
242
coaching_relationship_id : Set ( caleb_jim_coaching_relationship. id . clone ( ) . unwrap ( ) ) ,
243
243
date : Set ( now. naive_local ( ) ) ,
@@ -311,18 +311,6 @@ pub async fn seed_database(db: &DatabaseConnection) {
311
311
. await
312
312
. unwrap ( ) ;
313
313
314
- coaching_sessions:: ActiveModel {
315
- coaching_relationship_id : Set ( jim_caleb_coaching_relationship. id . clone ( ) . unwrap ( ) ) ,
316
- date : Set ( now. naive_local ( ) . checked_add_days ( Days :: new ( 28 ) ) . unwrap ( ) ) ,
317
- collab_document_name : Set ( None ) ,
318
- created_at : Set ( now. into ( ) ) ,
319
- updated_at : Set ( now. into ( ) ) ,
320
- ..Default :: default ( )
321
- }
322
- . save ( db)
323
- . await
324
- . unwrap ( ) ;
325
-
326
314
coaching_sessions:: ActiveModel {
327
315
coaching_relationship_id : Set ( jim_caleb_coaching_relationship. id . clone ( ) . unwrap ( ) ) ,
328
316
date : Set ( now. naive_local ( ) . checked_sub_days ( Days :: new ( 7 ) ) . unwrap ( ) ) ,
@@ -346,30 +334,6 @@ pub async fn seed_database(db: &DatabaseConnection) {
346
334
. save ( db)
347
335
. await
348
336
. unwrap ( ) ;
349
-
350
- coaching_sessions:: ActiveModel {
351
- coaching_relationship_id : Set ( jim_caleb_coaching_relationship. id . clone ( ) . unwrap ( ) ) ,
352
- date : Set ( now. naive_local ( ) . checked_sub_days ( Days :: new ( 21 ) ) . unwrap ( ) ) ,
353
- collab_document_name : Set ( None ) ,
354
- created_at : Set ( now. into ( ) ) ,
355
- updated_at : Set ( now. into ( ) ) ,
356
- ..Default :: default ( )
357
- }
358
- . save ( db)
359
- . await
360
- . unwrap ( ) ;
361
-
362
- coaching_sessions:: ActiveModel {
363
- coaching_relationship_id : Set ( jim_caleb_coaching_relationship. id . clone ( ) . unwrap ( ) ) ,
364
- date : Set ( now. naive_local ( ) . checked_sub_days ( Days :: new ( 28 ) ) . unwrap ( ) ) ,
365
- collab_document_name : Set ( None ) ,
366
- created_at : Set ( now. into ( ) ) ,
367
- updated_at : Set ( now. into ( ) ) ,
368
- ..Default :: default ( )
369
- }
370
- . save ( db)
371
- . await
372
- . unwrap ( ) ;
373
337
}
374
338
375
339
#[ cfg( test) ]
0 commit comments