aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-02-28 11:56:11 -0500
committerGitHub <noreply@github.com>2017-02-28 11:56:11 -0500
commit2840c429cc1cf0edb6e6549f7581b782021a71f9 (patch)
treeb81453ba1e5f8344b1069f2eff338de2014c31a5 /activerecord/lib/active_record/schema_dumper.rb
parente5fe81d29aabb5b2f32d26dea1d82a095e089587 (diff)
parent1fd36cc5c4b8adb3a2d1ff360b2161800ce29273 (diff)
downloadrails-2840c429cc1cf0edb6e6549f7581b782021a71f9.tar.gz
rails-2840c429cc1cf0edb6e6549f7581b782021a71f9.tar.bz2
rails-2840c429cc1cf0edb6e6549f7581b782021a71f9.zip
Merge pull request #28214 from kamipo/use_tables
Use `tables` instead of `data_sources - views`
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb2
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)