diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-28 08:45:08 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-28 08:45:08 +0900 |
commit | 1fd36cc5c4b8adb3a2d1ff360b2161800ce29273 (patch) | |
tree | 65e800915c39b407147ccec922717ab159b13a87 /activerecord/lib | |
parent | d50380f4e3f9e8d9398c8fdcbe5f52f784d14f5f (diff) | |
download | rails-1fd36cc5c4b8adb3a2d1ff360b2161800ce29273.tar.gz rails-1fd36cc5c4b8adb3a2d1ff360b2161800ce29273.tar.bz2 rails-1fd36cc5c4b8adb3a2d1ff360b2161800ce29273.zip |
Use `tables` instead of `data_sources - views`
`tables` returns only tables now.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index 15533f0151..2bbfd01698 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -85,7 +85,7 @@ HEADER end def tables(stream) - sorted_tables = @connection.data_sources.sort - @connection.views + sorted_tables = @connection.tables.sort sorted_tables.each do |table_name| table(table_name, stream) unless ignored?(table_name) |