所以我删除了这些:
20210108134117_add_pending_pms_table.rb
20210512090204_add_timestamps_to_automations.rb
20210530122323_move_triggers_to_fields.rb
20211119103353_adds_discourse_automation_user_global_notice.rb
20230412120414_add_prefers_encrypt_field_to_pending_pms.rb
并且可能应该删除 20190601000001_create_automations_table.rb,但相反,我添加了 unless table exists 代码(我认为当我删除它时遇到了另一个问题?)。
最后我终于恢复了它。