Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rescheduled 🗓️
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3lingo
rescheduled 🗓️
Commits
8282e65d
Unverified
Commit
8282e65d
authored
3 months ago
by
Felix Eckhofer
Browse files
Options
Downloads
Patches
Plain Diff
Only add dummy users in development
parent
ae7ea8a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/seeds.rb
+7
-5
7 additions, 5 deletions
db/seeds.rb
with
7 additions
and
5 deletions
db/seeds.rb
+
7
−
5
View file @
8282e65d
...
@@ -72,11 +72,13 @@ Conference.find_or_create_by!(slug: "38c3-more").tap do |c|
...
@@ -72,11 +72,13 @@ Conference.find_or_create_by!(slug: "38c3-more").tap do |c|
c
.
save!
c
.
save!
end
end
%w[coverage fog comedy adjust forge fail vigorous promise chemistry conception meat storage certain warm develop civilian cousin injection hammer health appetite conventional good snake grant suspect atmosphere linen wrong deal calf sea management silence watch nuance loan quit convert failure bracket slice sweat treaty plot still chimpanzee assume functional marsh dream mail state dorm kid formation secular agile beach guide salesperson merit goalkeeper incongruous cart pig joystick regulation apparatus myth patent glue behead flu departure spectrum parking indication delay hesitate viable lay treat cooperative sensation auction sphere stain tap pass]
.
each
do
|
username
|
if
Rails
.
env
.
development?
User
.
find_or_create_by
(
name:
username
).
tap
do
|
u
|
%w[coverage fog comedy adjust forge fail vigorous promise chemistry conception meat storage certain warm develop civilian cousin injection hammer health appetite conventional good snake grant suspect atmosphere linen wrong deal calf sea management silence watch nuance loan quit convert failure bracket slice sweat treaty plot still chimpanzee assume functional marsh dream mail state dorm kid formation secular agile beach guide salesperson merit goalkeeper incongruous cart pig joystick regulation apparatus myth patent glue behead flu departure spectrum parking indication delay hesitate viable lay treat cooperative sensation auction sphere stain tap pass]
.
each
do
|
username
|
u
.
email
=
"c3lingo+
#{
username
}
@x.moeffju.net"
User
.
find_or_create_by
(
name:
username
).
tap
do
|
u
|
u
.
invitation_token
=
"gargamel"
u
.
email
=
"c3lingo+
#{
username
}
@x.moeffju.net"
u
.
save!
u
.
invitation_token
=
"gargamel"
u
.
save!
end
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment