diff options
author | yui-knk <spiketeika@gmail.com> | 2015-09-12 23:00:57 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2015-11-09 23:13:23 +0900 |
commit | 7429633b824cf8aaeea52d11876e7bd2b8d2f256 (patch) | |
tree | aad38b660d637c8d9578955eb136337e60fb2d03 /activerecord/test/support | |
parent | 16214d1108c31174c94503caced3855b0f6bad95 (diff) | |
download | rails-7429633b824cf8aaeea52d11876e7bd2b8d2f256.tar.gz rails-7429633b824cf8aaeea52d11876e7bd2b8d2f256.tar.bz2 rails-7429633b824cf8aaeea52d11876e7bd2b8d2f256.zip |
Deprecate `#table_exists?`, `#tables` and passing arguments to `#talbes`
Reported on #21509, how views is treated by `#tables` are differ
by each adapters. To fix this different behavior, after Rails 5.0
is released, deprecate `#tables`.
And `#table_exists?` would check both tables and views.
To make their behavior consistent with `#tables`, after Rails 5.0
is released, deprecate `#table_exists?`.
Diffstat (limited to 'activerecord/test/support')
-rw-r--r-- | activerecord/test/support/schema_dumping_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/support/schema_dumping_helper.rb b/activerecord/test/support/schema_dumping_helper.rb index 2d1651454d..666c1b6a14 100644 --- a/activerecord/test/support/schema_dumping_helper.rb +++ b/activerecord/test/support/schema_dumping_helper.rb @@ -1,7 +1,7 @@ module SchemaDumpingHelper def dump_table_schema(table, connection = ActiveRecord::Base.connection) old_ignore_tables = ActiveRecord::SchemaDumper.ignore_tables - ActiveRecord::SchemaDumper.ignore_tables = connection.tables - [table] + ActiveRecord::SchemaDumper.ignore_tables = connection.data_sources - [table] stream = StringIO.new ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream) stream.string |