diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-29 02:50:21 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-29 17:53:03 -0500 |
commit | d5be101dd02214468a27b6839ffe338cfe8ef5f3 (patch) | |
tree | 65121d56a37241b3dc904bca0124a4c33511ebeb /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | |
parent | e646bad5b7c462187fc75c11d5c06e43759022d8 (diff) | |
download | rails-d5be101dd02214468a27b6839ffe338cfe8ef5f3.tar.gz rails-d5be101dd02214468a27b6839ffe338cfe8ef5f3.tar.bz2 rails-d5be101dd02214468a27b6839ffe338cfe8ef5f3.zip |
Remove deprecated `name` argument from `#tables`
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 | 8 |
1 files changed, 1 insertions, 7 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 9e7487b27f..6300501a07 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -71,13 +71,7 @@ module ActiveRecord end # Returns the list of all tables in the schema search path. - def tables(name = nil) - if name - ActiveSupport::Deprecation.warn(<<-MSG.squish) - Passing arguments to #tables is deprecated without replacement. - MSG - end - + def tables select_values("SELECT tablename FROM pg_tables WHERE schemaname = ANY(current_schemas(false))", "SCHEMA") end |