diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-09-13 20:40:25 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-09-13 21:02:52 +0900 |
commit | ad4654f2751217ec93a4fad1ef5454ab1255e833 (patch) | |
tree | fcfa56a38ed141e07a431c4b9eb31a2c79d7a690 /activerecord/lib | |
parent | dcd39949f8801cb4beddec37143a585259f09a2d (diff) | |
download | rails-ad4654f2751217ec93a4fad1ef5454ab1255e833.tar.gz rails-ad4654f2751217ec93a4fad1ef5454ab1255e833.tar.bz2 rails-ad4654f2751217ec93a4fad1ef5454ab1255e833.zip |
Do not dump a view as a table in sqlite3, mysql and mysql2 adapters
Now in sqlite3, mysql and mysql2 adapters, SchemaDumper dump a view as
a table. It is incorrect behavior. This change excludes a view in
schema.rb.
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 c5910fa1ad..4ea0d9f9d7 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -89,7 +89,7 @@ HEADER end def tables(stream) - sorted_tables = @connection.tables.sort + sorted_tables = @connection.tables.sort - @connection.views sorted_tables.each do |table_name| table(table_name, stream) unless ignored?(table_name) |