Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
schedules
Commits
e1f43351
Commit
e1f43351
authored
May 09, 2018
by
Zac Wood
Browse files
Rubocop
parent
ecdfe4b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
schedules_api/db/seeds.rb
View file @
e1f43351
...
...
@@ -19,10 +19,8 @@ loader = if Rails.env.test?
ExcelLoader
.
new
'db/data/allsections.xlsx'
end
semester
=
Semester
.
where
(
season:
"Fall"
,
year:
"2018"
).
first
Closure
.
create!
date:
Date
.
new
(
2018
,
9
,
3
),
semester:
semester
Closure
.
create!
date:
Date
.
new
(
2018
,
10
,
8
),
semester:
semester
(
21
..
25
).
each
{
|
n
|
Closure
.
create!
date:
Date
.
new
(
2018
,
11
,
n
),
semester:
semester
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment