From c9660b5777707658c414b430753029cd9bc39934 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?=
 <rafaelmfranca@gmail.com>
Date: Wed, 23 Aug 2017 17:47:04 -0400
Subject: Remove deprecated methods `initialize_schema_migrations_table` and
 `initialize_internal_metadata_table`

---
 activerecord/CHANGELOG.md                                      |  4 ++++
 .../connection_adapters/abstract/schema_statements.rb          | 10 ----------
 activerecord/test/cases/migration_test.rb                      |  5 -----
 3 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 9a58ebd100..2d3897fa92 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
+*   Remove deprecated methods `initialize_schema_migrations_table` and `initialize_internal_metadata_table`.
+
+    *Rafael Mendonça França*
+
 *   Raises when calling `lock!` in a dirty record.
 
     *Rafael Mendonça França*
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index 4169883443..1970cf5de0 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -1015,16 +1015,6 @@ module ActiveRecord
         insert_versions_sql(versions) if versions.any?
       end
 
-      def initialize_schema_migrations_table # :nodoc:
-        ActiveRecord::SchemaMigration.create_table
-      end
-      deprecate :initialize_schema_migrations_table
-
-      def initialize_internal_metadata_table # :nodoc:
-        ActiveRecord::InternalMetadata.create_table
-      end
-      deprecate :initialize_internal_metadata_table
-
       def internal_string_options_for_primary_key # :nodoc:
         { primary_key: true }
       end
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 07afa89779..3ea4b0782b 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -1107,11 +1107,6 @@ class CopyMigrationsTest < ActiveRecord::TestCase
     assert_raise(ArgumentError) { ActiveRecord::Migration[1.0] }
   end
 
-  def test_deprecate_initialize_internal_tables
-    assert_deprecated { ActiveRecord::Base.connection.initialize_schema_migrations_table }
-    assert_deprecated { ActiveRecord::Base.connection.initialize_internal_metadata_table }
-  end
-
   def test_deprecate_supports_migrations
     assert_deprecated { ActiveRecord::Base.connection.supports_migrations? }
   end
-- 
cgit v1.2.3