mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
Merge pull request #6482 from aignatov-bio/ai-sci-include-other-notifications-type-to-migration
Reset column information after adding columns
This commit is contained in:
commit
c25d65a7ab
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ class MigrateNotificationToNoticed < ActiveRecord::Migration[7.0]
|
||||||
add_column :notifications, :read_at, :datetime
|
add_column :notifications, :read_at, :datetime
|
||||||
add_reference :notifications, :recipient, polymorphic: true
|
add_reference :notifications, :recipient, polymorphic: true
|
||||||
|
|
||||||
|
Notification.reset_column_information
|
||||||
|
|
||||||
type_mapping = {
|
type_mapping = {
|
||||||
0 => 'ActivityNotification',
|
0 => 'ActivityNotification',
|
||||||
1 => 'GeneralNotification',
|
1 => 'GeneralNotification',
|
||||||
|
|
Loading…
Reference in a new issue