aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-01-07 03:08:03 -0800
committerYves Senn <yves.senn@gmail.com>2014-01-07 03:08:03 -0800
commitab21f42245b1e6fa9ccf03d4ebe190803add1569 (patch)
treead0902bc0e7077d8c92ebe3834d46d71a25e3321 /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parent3a33e8ea85f025d5ba575318583d1038889a2ba1 (diff)
parenteb589fed6f4950d441bc6aed8dfaaeffec061322 (diff)
downloadrails-ab21f42245b1e6fa9ccf03d4ebe190803add1569.tar.gz
rails-ab21f42245b1e6fa9ccf03d4ebe190803add1569.tar.bz2
rails-ab21f42245b1e6fa9ccf03d4ebe190803add1569.zip
Merge pull request #13597 from prathamesh-sonpatki/hstore_migration
Make change_table use object of current database adapter
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index 11a5eba464..7e188907e1 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -721,6 +721,10 @@ module ActiveRecord
!native_database_types[type].nil?
end
+ def update_table_definition(table_name, base) #:nodoc:
+ Table.new(table_name, base)
+ end
+
protected
# Returns the version of the connected PostgreSQL server.
@@ -800,7 +804,7 @@ module ActiveRecord
end
end
- FEATURE_NOT_SUPPORTED = "0A000" # :nodoc:
+ FEATURE_NOT_SUPPORTED = "0A000" #:nodoc:
def exec_no_cache(sql, name, binds)
log(sql, name, binds) { @connection.async_exec(sql) }
@@ -990,10 +994,6 @@ module ActiveRecord
def create_table_definition(name, temporary, options, as = nil)
TableDefinition.new native_database_types, name, temporary, options, as
end
-
- def update_table_definition(table_name, base)
- Table.new(table_name, base)
- end
end
end
end