diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-27 22:41:22 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-27 22:43:23 -0300 |
commit | 27fdf4591d06d11728649714bdaf0a006908861b (patch) | |
tree | a52e760ec83c05b4eb21de2134aa2c7b679dede2 /activerecord/lib | |
parent | a75f6cfb1bf155616f2c4f59d0712455862bd90b (diff) | |
parent | 1b8adca35826f91ecbdf989f5dfeb5c40b71e3a6 (diff) | |
download | rails-27fdf4591d06d11728649714bdaf0a006908861b.tar.gz rails-27fdf4591d06d11728649714bdaf0a006908861b.tar.bz2 rails-27fdf4591d06d11728649714bdaf0a006908861b.zip |
Merge pull request #20269 from wojobucco/master
Changed mysqldump to include sprocs and functions
Diffstat (limited to 'activerecord/lib')
-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 bc80275a88..673386f0d9 100644 --- a/activerecord/lib/active_record/tasks/mysql_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/mysql_database_tasks.rb @@ -59,6 +59,7 @@ module ActiveRecord args = prepare_command_options('mysqldump') args.concat(["--result-file", "#{filename}"]) args.concat(["--no-data"]) + args.concat(["--routines"]) args.concat(["#{configuration['database']}"]) unless Kernel.system(*args) $stderr.puts "Could not dump the database structure. "\ |