aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/belongs_to_associations_test.rb2
-rw-r--r--activerecord/test/schema/schema.rb4
2 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb
index 4238681905..c9bdfb88ae 100644
--- a/activerecord/test/cases/associations/belongs_to_associations_test.rb
+++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -936,7 +936,6 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
end
end
-unless current_adapter?(:MysqlAdapter, :Mysql2Adapter)
class BelongsToWithForeignKeyTest < ActiveRecord::TestCase
def test_destroy_linked_models
address = AuthorAddress.create!
@@ -945,4 +944,3 @@ class BelongsToWithForeignKeyTest < ActiveRecord::TestCase
author.destroy!
end
end
-end
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 7dbb29d9b0..932c9ba5d9 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -84,9 +84,7 @@ ActiveRecord::Schema.define do
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