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:
parent
36a38973a3
commit
e84799d9c6
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue