diff options
author | Naoto Koshikawa <koshikawa@ppworks.jp> | 2016-01-28 13:16:57 +0900 |
---|---|---|
committer | Naoto Koshikawa <koshikawa@ppworks.jp> | 2016-01-28 14:44:03 +0900 |
commit | 941a735bbeafd9068bba8d29fa1c7c5371ad8ce3 (patch) | |
tree | 46ba9c8b1f999474a7f0482088c8f98e7d6d1387 /activerecord/lib/active_record/tasks | |
parent | b2fe263fa66755521ba845a64dcbe3a1d86e3ff6 (diff) | |
download | rails-941a735bbeafd9068bba8d29fa1c7c5371ad8ce3.tar.gz rails-941a735bbeafd9068bba8d29fa1c7c5371ad8ce3.tar.bz2 rails-941a735bbeafd9068bba8d29fa1c7c5371ad8ce3.zip |
Skip comments when exec mysqldump
Diffstat (limited to 'activerecord/lib/active_record/tasks')
-rw-r--r-- | activerecord/lib/active_record/tasks/mysql_database_tasks.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb index 7a49322e06..4cf32c2abe 100644 --- a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb @@ -58,6 +58,7 @@ module ActiveRecord args.concat(["--result-file", "#{filename}"]) args.concat(["--no-data"]) args.concat(["--routines"]) + args.concat(["--skip-comments"]) args.concat(["#{configuration['database']}"]) run_cmd('mysqldump', args, 'dumping') |