aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-03-28 18:12:51 -0400
committerGitHub <noreply@github.com>2017-03-28 18:12:51 -0400
commit5ac89b168b049e895cc26db90fe54ee77b63bcbc (patch)
treea449070d659b85bd6af6ab2edc643438cd3a0bb3 /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parentd046390c324142afffbf105075a1f4998c149c14 (diff)
parente4108fc619e0f1c28cdec6049d31f2db01d56dfd (diff)
downloadrails-5ac89b168b049e895cc26db90fe54ee77b63bcbc.tar.gz
rails-5ac89b168b049e895cc26db90fe54ee77b63bcbc.tar.bz2
rails-5ac89b168b049e895cc26db90fe54ee77b63bcbc.zip
Merge pull request #28052 from kamipo/make_internal_methods_to_private
Make internal methods to private
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb17
1 files changed, 2 insertions, 15 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index 6273614f0c..0ad114165e 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -121,14 +121,6 @@ module ActiveRecord
include PostgreSQL::DatabaseStatements
include PostgreSQL::ColumnDumper
- def schema_creation # :nodoc:
- PostgreSQL::SchemaCreation.new self
- end
-
- def arel_visitor # :nodoc:
- Arel::Visitors::PostgreSQL.new(self)
- end
-
# Returns true, since this connection adapter supports prepared statement
# caching.
def supports_statement_cache?
@@ -382,11 +374,6 @@ module ActiveRecord
PostgreSQL::Table.new(table_name, base)
end
- def lookup_cast_type(sql_type) # :nodoc:
- oid = execute("SELECT #{quote(sql_type)}::regtype::oid", "SCHEMA").first["oid"].to_i
- super(oid)
- end
-
def column_name_for_operation(operation, node) # :nodoc:
OPERATION_ALIASES.fetch(operation) { operation.downcase }
end
@@ -783,8 +770,8 @@ module ActiveRecord
$1.strip if $1
end
- def create_table_definition(*args)
- PostgreSQL::TableDefinition.new(*args)
+ def arel_visitor
+ Arel::Visitors::PostgreSQL.new(self)
end
def can_perform_case_insensitive_comparison_for?(column)