aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-01-20 01:02:03 +1030
committerMatthew Draper <matthew@trebex.net>2017-01-20 01:02:03 +1030
commit893d5fb0a24bc69b07574924d78ca7f9826f9403 (patch)
tree0c7d9dea4715e65f5b1a6ea51b33758ce79fbfb4 /activerecord/lib/active_record/connection_adapters
parent7b4514c6ab2703b9a9b6574f3559cae722a33d4f (diff)
downloadrails-893d5fb0a24bc69b07574924d78ca7f9826f9403.tar.gz
rails-893d5fb0a24bc69b07574924d78ca7f9826f9403.tar.bz2
rails-893d5fb0a24bc69b07574924d78ca7f9826f9403.zip
Revert "Merge pull request #27718 from kamipo/remove_internal_public_methods"
This reverts commit 39c77eb1843f79925c7195e8869afc7cb7323682, reversing changes made to 9f6f51be78f8807e18fc6562c57af2fdbf8ccb56.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb10
1 files changed, 10 insertions, 0 deletions
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