当我尝试运行相对简单的rails迁移来删除列时: class Removetopicsfromquestions < ActiveRecord::Migration[5.2] t.remove :topic_id end
end 由于“外键约束”导致失败: rails abortedStandardError: An error has occurred, this and all later migrations c
我正在尝试使用在Rails中启用外键约束。它在我的开发数据库上工作,但当我尝试运行我的测试时,我得到以下错误:`arizona_downloads_ibfk_1`FOREIGNKEY (`books_id`) REFERENCES `books`(id) ON DELETE SET NULL>
奇怪的是,