# CREATE TRACK Full Stack Rails Course
# *********************************

track = create_or_update_track(
  title: "Full Stack Ruby on Rails",
  description: "This track takes you through our entire curriculum. You'll learn everything you need to know to create beautiful responsive websites from scratch. This is our default track. If you do not know where to start, select this track.",
  position: 1,
  default: true,
)

position = 0
courses_in_track = [
  { course_id: Course.find_by_title("Web Development 101").id, position: position += 1 },
  { course_id: Course.find_by_title("Ruby Programming").id, position: position += 1 },
  { course_id: Course.find_by_title("Databases").id, position: position += 1 },
  { course_id: Course.find_by_title("Ruby on Rails").id, position: position += 1 },
  { course_id: Course.find_by_title("HTML and CSS").id, position: position += 1 },
  { course_id: Course.find_by_title("Javascript").id, position: position += 1 },
  { course_id: Course.find_by_title("Getting Hired").id, position: position += 1 },
]

courses_in_track.each do |course_attrs|
  track.track_courses.create!(course_attrs)
end

# CREATE TRACK Full Stack Rails Course
# *********************************

track = create_or_update_track(
  title: "Full Stack Ruby on Rails",
  description: "This track takes you through our entire Ruby on Rails curriculum. You'll learn everything you need to know to create beautiful responsive websites from scratch. This is our default track. If you do not know where to start, select this track.",
  position: 1,
  default: true,
)

position = 0
courses_in_track = [
  { course_id: Course.find_by_title("Web Development 101").id, position: position += 1 },
  { course_id: Course.find_by_title("Ruby Programming").id, position: position += 1 },
  { course_id: Course.find_by_title("Databases").id, position: position += 1 },
  { course_id: Course.find_by_title("Ruby on Rails").id, position: position += 1 },
  { course_id: Course.find_by_title("HTML and CSS").id, position: position += 1 },
  { course_id: Course.find_by_title("Javascript").id, position: position += 1 },
  { course_id: Course.find_by_title("Getting Hired").id, position: position += 1 },
]

courses_in_track.each do |course_attrs|
  track.track_courses.create!(course_attrs)
end

Update Ruby on Rails track description
Update Ruby on Rails track description

The original wording stated that the Ruby on Rails track takes a student
though the entire curriculum. With NodeJS as an option this is not
longer correct. This clarifies the track as specific to Ruby on Rails
