aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-08-21 00:54:24 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-08-21 00:54:24 +0900
commit8b2e431db708b55e3c4cbd5df96080856be79059 (patch)
tree9c340d4c63de8bd2cda94e5ebcccc0c47603dc81 /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
parent8170419b0a0e7abbfb2c64c84f641c0a39c163d0 (diff)
downloadrails-8b2e431db708b55e3c4cbd5df96080856be79059.tar.gz
rails-8b2e431db708b55e3c4cbd5df96080856be79059.tar.bz2
rails-8b2e431db708b55e3c4cbd5df96080856be79059.zip
Place `update_table_definition` consistently in `SchemaStatements`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index 780e642f21..f258203a43 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -586,6 +586,10 @@ module ActiveRecord
[super, *order_columns].join(", ")
end
+ def update_table_definition(table_name, base) # :nodoc:
+ PostgreSQL::Table.new(table_name, base)
+ end
+
private
def schema_creation
PostgreSQL::SchemaCreation.new(self)