Commit 591d6baf15f4720cb2cdf7b4b55afc1e83693c8e
1 parent
ac0a419c
Exists in
master
and in
22 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,7 +15,6 @@ people = [] | ||
15 | 15 | ||
16 | NAMES = %w[ José João Antonio Paulo Maria Joana Paula Angela ] | 16 | NAMES = %w[ José João Antonio Paulo Maria Joana Paula Angela ] |
17 | SURNAMES = %w[ Silva Santos Abreu Oliveira Machado Bonfim ] | 17 | SURNAMES = %w[ Silva Santos Abreu Oliveira Machado Bonfim ] |
18 | -User.destroy_all | ||
19 | print "Creating users: "; $stdout.flush | 18 | print "Creating users: "; $stdout.flush |
20 | for name in NAMES | 19 | for name in NAMES |
21 | for surname in SURNAMES | 20 | for surname in SURNAMES |
@@ -50,7 +49,6 @@ puts | @@ -50,7 +49,6 @@ puts | ||
50 | 49 | ||
51 | VERBS = ['Save', 'I like', 'I hate', 'Use'] | 50 | VERBS = ['Save', 'I like', 'I hate', 'Use'] |
52 | STUFF = ['Free Software', 'Organic food', 'the wales', 'the environment', 'Barack Obama', 'Osama Bin Laden', 'Lula'] | 51 | STUFF = ['Free Software', 'Organic food', 'the wales', 'the environment', 'Barack Obama', 'Osama Bin Laden', 'Lula'] |
53 | -Community.destroy_all | ||
54 | print "Creating communities: "; $stdout.flush | 52 | print "Creating communities: "; $stdout.flush |
55 | for verb in VERBS | 53 | for verb in VERBS |
56 | for stuff in STUFF | 54 | for stuff in STUFF |