From 893d5fb0a24bc69b07574924d78ca7f9826f9403 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Fri, 20 Jan 2017 01:02:03 +1030 Subject: Revert "Merge pull request #27718 from kamipo/remove_internal_public_methods" This reverts commit 39c77eb1843f79925c7195e8869afc7cb7323682, reversing changes made to 9f6f51be78f8807e18fc6562c57af2fdbf8ccb56. --- .../connection_adapters/abstract/schema_statements.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'activerecord/lib/active_record/connection_adapters') 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 95725cd883..1bdc086380 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -1008,6 +1008,16 @@ module ActiveRecord end end + # Should not be called normally, but this operation is non-destructive. + # The migrations module handles this automatically. + def initialize_schema_migrations_table + ActiveRecord::SchemaMigration.create_table + end + + def initialize_internal_metadata_table + ActiveRecord::InternalMetadata.create_table + end + def internal_string_options_for_primary_key # :nodoc: { primary_key: true } end -- cgit v1.2.3