mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 07:03:51 +08:00
Reset column information after adding columns
This commit is contained in:
parent
c70bc67347
commit
8f41e72ea1
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_reference :notifications, :recipient, polymorphic: true
|
||||
|
||||
Notification.reset_column_information
|
||||
|
||||
type_mapping = {
|
||||
0 => 'ActivityNotification',
|
||||
1 => 'GeneralNotification',
|
||||
|
|
Loading…
Reference in a new issue