Add a test case for save(validate:false) with invalid foreign key.
It is supposed to raise ActiveRecord::InvalidForeignKey when the database has a fk constraint.
Showing
想要评论请 注册 或 登录
It is supposed to raise ActiveRecord::InvalidForeignKey when the database has a fk constraint.