Commit 591d6baf15f4720cb2cdf7b4b55afc1e83693c8e
1 parent
ac0a419c
Exists in
master
and in
29 other branches
Don't destroy everything when creating sample data
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
script/sample-data
... | ... | @@ -15,7 +15,6 @@ people = [] |
15 | 15 | |
16 | 16 | NAMES = %w[ José João Antonio Paulo Maria Joana Paula Angela ] |
17 | 17 | SURNAMES = %w[ Silva Santos Abreu Oliveira Machado Bonfim ] |
18 | -User.destroy_all | |
19 | 18 | print "Creating users: "; $stdout.flush |
20 | 19 | for name in NAMES |
21 | 20 | for surname in SURNAMES |
... | ... | @@ -50,7 +49,6 @@ puts |
50 | 49 | |
51 | 50 | VERBS = ['Save', 'I like', 'I hate', 'Use'] |
52 | 51 | STUFF = ['Free Software', 'Organic food', 'the wales', 'the environment', 'Barack Obama', 'Osama Bin Laden', 'Lula'] |
53 | -Community.destroy_all | |
54 | 52 | print "Creating communities: "; $stdout.flush |
55 | 53 | for verb in VERBS |
56 | 54 | for stuff in STUFF | ... | ... |