seeds.rb 237 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
require_relative 'excel_loader'
2

Zac Wood's avatar
Zac Wood committed
3
# Deletes all records from the database.
Zac Wood's avatar
Zac Wood committed
4
Closure.delete_all
Zac Wood's avatar
Zac Wood committed
5
CourseSection.delete_all
6
7
Course.delete_all
Semester.delete_all
Zac Wood's avatar
Zac Wood committed
8
9
10
11
  
loader = ExcelLoader.new 'db/data/fall2018.xlsx'
         
loader.load_data
12

Zac Wood's avatar
Zac Wood committed
13