Permalink
Browse files

Re-enable foriegn key tests on MySQL

This reverts commit e84799d, e31104c and e6ca8e2
  • Loading branch information...
chancancode committed Jul 5, 2014
1 parent 5780b96 commit 6787507883972bc3acb83c105fb753a8ca69fd1e
@@ -936,7 +936,6 @@ def test_reflect_the_most_recent_change
end
end
-unless current_adapter?(:MysqlAdapter, :Mysql2Adapter)
class BelongsToWithForeignKeyTest < ActiveRecord::TestCase
def test_destroy_linked_models
address = AuthorAddress.create!
@@ -945,4 +944,3 @@ def test_destroy_linked_models
author.destroy!
end
end
-end
@@ -84,9 +84,7 @@ def except(adapter_names_to_exclude)
create_table :author_addresses, force: true do |t|
end
- unless current_adapter?(:MysqlAdapter, :Mysql2Adapter)
- add_foreign_key :authors, :author_addresses
- end
+ add_foreign_key :authors, :author_addresses
create_table :author_favorites, force: true do |t|
t.column :author_id, :integer

0 comments on commit 6787507

Please sign in to comment.