|
10 | 10 | end: '22' |
11 | 11 | }, |
12 | 12 | 'saturday': { |
13 | | - start: '8', |
| 13 | + start: '10', |
14 | 14 | end: '22' |
15 | 15 | }, |
16 | 16 | 'sunday': { |
17 | | - start: '8', |
| 17 | + start: '14', |
18 | 18 | end: '22' |
19 | 19 | }, |
20 | 20 | }}, {name: "Club #2", address: 'Av. Jorge Chavez 184', district: "Miraflores", latitude: -13.1199378, longitude: -77.0353161, |
|
47 | 47 | }, |
48 | 48 | }}]) |
49 | 49 |
|
50 | | -SportField.create(name: "SportField #1", description: "Soccer 5vs5", price_day: 20, price_night: 40, club_id: 1) |
51 | | -SportField.create(name: "SportField #2", description: "Soccer 6vs6", price_day: 30, price_night: 60, club_id: 2) |
52 | | -SportField.create(name: "SportField #3", description: "Soccer 5vs5", price_day: 20, price_night: 40, club_id: 1) |
| 50 | +sportfield1 = SportField.create(name: "SportField #1", description: "Soccer 5vs5", price_day: 20, price_night: 40, club_id: 1) |
| 51 | +sportfield2 = SportField.create(name: "SportField #2", club_id: 2); SportField.create(name: "SportField #2", description: "Soccer 6vs6", price_day: 30, price_night: 60, club_id: 2) |
| 52 | +sportfield3 = SportField.create(name: "SportField #3", club_id: 1); SportField.create(name: "SportField #3", description: "Soccer 5vs5", price_day: 20, price_night: 40, club_id: 1) |
53 | 53 |
|
54 | 54 | Club.create( |
55 | 55 | name: 'Club golden', |
|
73 | 73 | # favorites |
74 | 74 | regular_user.favorite(Club.first) |
75 | 75 | regular_user.favorite(Club.last) |
| 76 | +regular_user.bookings.create(date: Time.now, start_hour: 14, end_hour: 15, amount: 100, sport_field_id: sportfield1.id ); |
| 77 | + |
| 78 | +regular_user.bookings.create(date: Time.now, start_hour: 15, end_hour: 16, amount: 100, sport_field_id: sportfield1.id ); |
| 79 | + |
| 80 | +regular_user.bookings.create(date: Time.now, start_hour: 16, end_hour: 17, amount: 100, sport_field_id: sportfield1.id ); |
| 81 | + |
| 82 | +regular_user.bookings.create(date: Time.now, start_hour: 17, end_hour: 18, amount: 100, sport_field_id: sportfield1.id ); |
| 83 | + |
| 84 | +regular_user.bookings.create(date: Time.now, start_hour: 15, end_hour: 16, amount: 200, sport_field_id: sportfield2.id ); |
| 85 | + |
| 86 | +regular_user.bookings.create(date: Time.now, start_hour: 16, end_hour: 17, amount: 300, sport_field_id: sportfield3.id ); |
0 commit comments