1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

MySQL doesn't works with foreign key

This commit is contained in:
Rafael Mendonça França 2014-06-27 16:41:38 -03:00
parent 36a38973a3
commit e84799d9c6

View file

@ -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