mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
Maintenance task to migrate notifications for Fab-manager v1
This commit is contained in:
parent
1d3e942f30
commit
8395363811
@ -7,6 +7,7 @@
|
||||
- Updated documentation
|
||||
- Changed In-Context pseudo-language to Zulu instead of Acholi
|
||||
- Allow removing contacts from the about page
|
||||
- Maintenance task to migrate notifications for Fab-manager v1
|
||||
- Fix a bug: installation without nginx does not remove the service from the docker-compose file
|
||||
- Fix a bug: default twitter feed is invalid
|
||||
- Fix a bug: default nginx configuration does not allows secure cookies
|
||||
|
@ -68,5 +68,13 @@ namespace :fablab do
|
||||
task rebuild_stylesheet: :environment do
|
||||
Stylesheet.build_sheet!
|
||||
end
|
||||
|
||||
desc 'migration notifications from Fab-manager v1'
|
||||
task migrate_v1_notifications: :environment do
|
||||
Notification.where(notification_type_id: 4).each do |n|
|
||||
n.notification_type_id = 11
|
||||
n.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user