From e84799d9c6e06ca65b798f55458683721a03f6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 27 Jun 2014 16:41:38 -0300 Subject: MySQL doesn't works with foreign key --- activerecord/test/cases/associations/belongs_to_associations_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 65b6068df4..cc5ccdf835 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -936,12 +936,10 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase end end +unless current_adapter?(:MysqlAdapter, :Mysql2Adapter) class BelongsToWithForeignKeyTest < ActiveRecord::TestCase def setup ActiveRecord::Schema.define do - drop_table :authors, if_exists: true - drop_table :author_addresses, if_exists: true - create_table :author_addresses do |t| end @@ -971,3 +969,4 @@ class BelongsToWithForeignKeyTest < ActiveRecord::TestCase author.destroy! end end +end -- cgit v1.2.3