aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks
diff options
context:
space:
mode:
authorNaoto Koshikawa <koshikawa@ppworks.jp>2016-01-28 13:16:57 +0900
committerNaoto Koshikawa <koshikawa@ppworks.jp>2016-01-28 14:44:03 +0900
commit941a735bbeafd9068bba8d29fa1c7c5371ad8ce3 (patch)
tree46ba9c8b1f999474a7f0482088c8f98e7d6d1387 /activerecord/lib/active_record/tasks
parentb2fe263fa66755521ba845a64dcbe3a1d86e3ff6 (diff)
downloadrails-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.rb1
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')