-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added more seed data for future developers. #366
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,91 @@ | |
@user.is_admin = true | ||
@user.save! | ||
|
||
# Example Organization, Project, and Job | ||
Organization.create(:name => "CodeMontage", :url => "http://codemontage.com", :github_org => "CodeMontage", :twitter => "CodeMontage", :image_url => "http://codemontage.com/assets/cm_header_logo.png") | ||
Project.create(:organization_id => 1, :name => "CodeMontage Platform", :github_repo => "codemontage", :cause_list => "Volunteerism, Economic Empowerment, Tech Inclusion", :technology_list => "Ruby, Rails, PostgreSQL") | ||
Job.create(:organization_id => 1, :title => "Superhero", :overview => "Save the world with CodeMontage.", :cause_list => "Volunteerism, Economic Empowerment, Tech Inclusion", :technology_list => "Ruby, Rails, PostgreSQL") | ||
|
||
# Exmaples | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect indentation detected (column 0 instead of 2). |
||
# Organizations | ||
Organization.create( | ||
:name => "CodeMontage", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
:url => "http://codemontage.com", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
:github_org => "CodeMontage", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
:twitter => "CodeMontage", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
:image_url => "http://codemontage.com/assets/cm_header_logo.png" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
) | ||
|
||
Organization.create( | ||
:name => "OmahaCodeSchool", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
:url => "http://omahacodeschool.com", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
:github_org => "OmahaCodeSchool", | ||
:twitter => "OmahaCodeSchool", | ||
:image_url => "http://codemontage.com/assets/cm_header_logo.png" | ||
) | ||
|
||
Organization.create( | ||
:name => "Dev Bootcamp", | ||
:url => "http://devbootcamp.com", | ||
:github_org => "DevBootCamp", | ||
:twitter => "DevBootCamp", | ||
:image_url => "http://codemontage.com/assets/cm_header_logo.png" | ||
) | ||
|
||
# Projects | ||
Project.create( | ||
:organization_id => 1, | ||
:name => "CodeMontage Platform", | ||
:github_repo => "codemontage", | ||
:cause_list => "Volunteerism, Economic Empowerment, Tech Inclusion", | ||
:technology_list => "Ruby, Rails, PostgreSQL", | ||
is_approved: true | ||
) | ||
|
||
Project.create( | ||
:organization_id => 2, | ||
:name => "OmahaCodeSchool Platform", | ||
:github_repo => "omahacodeschool", | ||
:cause_list => "Tech Education, Social Empowerment, Tech Inclusion", | ||
:technology_list => "Ruby, Rails, PostgreSQL, Javascript, HTML, CSS", | ||
is_approved: true | ||
) | ||
|
||
Project.create( | ||
:organization_id => 3, | ||
:name => "DevBootCamp Platform", | ||
:github_repo => "devbootcamp", | ||
:cause_list => "Tech Education, Social Empowerment", | ||
:technology_list => "Ruby, Rails, Javascript, HTML, CSS", | ||
is_approved: true | ||
) | ||
|
||
Project.create( | ||
:organization_id => 1, | ||
:name => "Not Approved Project", | ||
:github_repo => "codemonate", | ||
:cause_list => "Volunteerism, Social Empowerment, Tech Inclusion", | ||
:technology_list => "Ruby, Rails, Javascript, HTML, CSS" | ||
) | ||
|
||
Project.create( | ||
:organization_id => 2, | ||
:name => "Ruby Rogues Podcast", | ||
:github_repo => "codemontage", | ||
:cause_list => "Tech Education, Social Empowerment, Talking Heads, Tech Awareness", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [88/80] |
||
:technology_list => "Ruby, Rails, Django, MongoDB, Python", | ||
is_approved: true | ||
) | ||
|
||
# Jobs | ||
Job.create( | ||
:organization_id => 1, | ||
:title => "Superhero", | ||
:overview => "Save the world with CodeMontage.", | ||
:cause_list => "Volunteerism, Economic Empowerment, Tech Inclusion", | ||
:technology_list => "Ruby, Rails, PostgreSQL" | ||
) | ||
|
||
Job.create( | ||
:organization_id => 1, | ||
:title => "Happiness Engineer", | ||
:overview => "Save the world with CodeMontage by bringing joy to users.", | ||
:cause_list => "Volunteerism, Mood Empowerment, Tech Inclusion", | ||
:technology_list => "Ruby, Rails, PostgreSQL" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra blank line detected.