diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-03-06 07:03:04 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-03-06 07:03:04 -0800 |
commit | a8bc72effb4dbab5803f4872f61c9707bc02e22d (patch) | |
tree | 266606a6ffa2b92a57529c724f6875a02c63e1e3 /activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | |
parent | 4ce98432512d11ac2f0330e2313c2c031552ffff (diff) | |
parent | 0a5fdcd5ae2f7928ce9ce492c9815ad71f858a9f (diff) | |
download | rails-a8bc72effb4dbab5803f4872f61c9707bc02e22d.tar.gz rails-a8bc72effb4dbab5803f4872f61c9707bc02e22d.tar.bz2 rails-a8bc72effb4dbab5803f4872f61c9707bc02e22d.zip |
Merge pull request #9538 from senny/remove_structure_dump
`Connection#structure_dump` is no longer used
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 9826b18053..be4a30aed9 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -332,20 +332,6 @@ module ActiveRecord # SCHEMA STATEMENTS ======================================== - def structure_dump #:nodoc: - if supports_views? - sql = "SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'" - else - sql = "SHOW TABLES" - end - - select_all(sql, 'SCHEMA').map { |table| - table.delete('Table_type') - sql = "SHOW CREATE TABLE #{quote_table_name(table.to_a.first.last)}" - exec_query(sql, 'SCHEMA').first['Create Table'] + ";\n\n" - }.join - end - # Drops the database specified on the +name+ attribute # and creates it again using the provided +options+. def recreate_database(name, options = {}) |