diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-20 23:32:41 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-22 19:18:29 +0900 |
commit | 815dd11bc5b6988b55573530644de93aefefa1b4 (patch) | |
tree | c4b35396b375c123e9b54dd28e680b63f41e25ca /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | |
parent | f2099361da05dd6890c733e5aecdce4cd52efdff (diff) | |
download | rails-815dd11bc5b6988b55573530644de93aefefa1b4.tar.gz rails-815dd11bc5b6988b55573530644de93aefefa1b4.tar.bz2 rails-815dd11bc5b6988b55573530644de93aefefa1b4.zip |
Refactor `SchemaDumper` to make it possible to adapter specific customization
Currently `SchemaDumper` is only customizable for column options. But
3rd party connection adapters (oracle-enhanced etc) need to customizable
for table or index dumping also. To make it possible, I introduced
adapter specific `SchemaDumper` classes for that.
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.rb | 4 |
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 f258203a43..9e2f61e6ce 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -590,6 +590,10 @@ module ActiveRecord PostgreSQL::Table.new(table_name, base) end + def create_schema_dumper(options) # :nodoc: + PostgreSQL::SchemaDumper.create(self, options) + end + private def schema_creation PostgreSQL::SchemaCreation.new(self) |