mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
added new seed to update default instructor's configuration to active
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface) => {
|
||||
await queryInterface.bulkUpdate(
|
||||
'configurations',
|
||||
{ name: 'Konfiguraatio 1' },
|
||||
{ active: true }
|
||||
)
|
||||
},
|
||||
|
||||
down: async (queryInterface) => {
|
||||
await queryInterface.bulkUpdate(
|
||||
'configurations',
|
||||
{ name: 'Konfiguraatio 1' },
|
||||
{ active: false }
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user