diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-27 16:41:38 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-27 16:41:38 -0300 |
commit | e84799d9c6e06ca65b798f55458683721a03f6f8 (patch) | |
tree | 9413f110979a8a6db3e3391ed7db21a4b3c475cf /activerecord/test | |
parent | 36a38973a3c81831af44ec3dce1fc4ff49c4dc55 (diff) | |
download | rails-e84799d9c6e06ca65b798f55458683721a03f6f8.tar.gz rails-e84799d9c6e06ca65b798f55458683721a03f6f8.tar.bz2 rails-e84799d9c6e06ca65b798f55458683721a03f6f8.zip |
MySQL doesn't works with foreign key
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 |