Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 88 additions & 5 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,94 @@
# Mayor.create(name: 'Emanuel', city: cities.first)

# Admin User can login & add most other data via ActiveAdmin
@user = User.new(:email => "[email protected]", :password => "passw0rd")
@user = User.new(email: "[email protected]", :password: "passw0rd")
@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
# Organizations
Organization.create(
name: "CodeMontage",
url: "http://codemontage.com",
github_org: "CodeMontage",
twitter: "CodeMontage",
image_url: "http://codemontage.com/assets/cm_header_logo.png"
)

Organization.create(
name: "OmahaCodeSchool",
url: "http://omahacodeschool.com",
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",
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"
)