seeds-excel.rb 224 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
3
4
5
6
7
8
require_relative 'excel_loader'

# Deletes all records from the database.
Closure.delete_all
CourseSection.delete_all
Course.delete_all
Semester.delete_all

Zac Wood's avatar
Zac Wood committed
9
loader = ExcelLoader.new 'db/data/fall2018.xlsx'
Zac Wood's avatar
Zac Wood committed
10

Zac Wood's avatar
Zac Wood committed
11
loader.load_data