|
@@ -4,6 +4,8 @@ Activity.delete_all
|
4
|
4
|
Activity.reset_pk_sequence
|
5
|
5
|
JoinedUserActivity.delete_all
|
6
|
6
|
JoinedUserActivity.reset_pk_sequence
|
|
7
|
+Task.delete_all
|
|
8
|
+Task.reset_pk_sequence
|
7
|
9
|
|
8
|
10
|
10.times do |i|
|
9
|
11
|
name = Faker::Name.first_name.downcase
|
|
@@ -25,4 +27,14 @@ JoinedUserActivity.reset_pk_sequence
|
25
|
27
|
)
|
26
|
28
|
puts "Created ASSOCIATION ##{joined_user_activity.id}"
|
27
|
29
|
end
|
|
30
|
+end
|
|
31
|
+
|
|
32
|
+10.times do |i|
|
|
33
|
+ task = Task.create(
|
|
34
|
+ name: Faker::Fantasy::Tolkien.character,
|
|
35
|
+ description: Faker::Fantasy::Tolkien.poem,
|
|
36
|
+ user_id: User.all.sample.id,
|
|
37
|
+ activity_id: Activity.all.sample.id
|
|
38
|
+ )
|
|
39
|
+ puts "Created TASK ##{i} - #{task.name}"
|
28
|
40
|
end
|