提交 e6ca8e2c 编写于 作者: G Godfrey Chan

Merge pull request #15951 from pcreux/fix-mysql-test-fk

MySQL doesn't work with foreign keys
......@@ -83,7 +83,10 @@ def except(adapter_names_to_exclude)
create_table :author_addresses, force: true do |t|
end
add_foreign_key :authors, :author_addresses
unless current_adapter?(:MysqlAdapter, :Mysql2Adapter)
add_foreign_key :authors, :author_addresses
end
create_table :author_favorites, force: true do |t|
t.column :author_id, :integer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册