From 1918ad8d9c35b2d8361288c20946918ee37cfa2b Mon Sep 17 00:00:00 2001 From: Kyrylo Shegeda Date: Tue, 16 Sep 2014 14:41:15 -0400 Subject: [PATCH] Include schema_migrations in the dump --- lib/tasks/database.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tasks/database.rake b/lib/tasks/database.rake index 30cc386..8bf6cd6 100644 --- a/lib/tasks/database.rake +++ b/lib/tasks/database.rake @@ -17,7 +17,10 @@ namespace :db do when /mysql/i require 'db_structure_ext' connection_proxy = DbStructureExt::MysqlConnectionProxy.new(ActiveRecord::Base.connection) - File.open(file, "w+") { |f| f << connection_proxy.structure_dump } + File.open(file, "w+") do |f| + f << connection_proxy.structure_dump + f << connection_proxy.dump_schema_information + end else original_db_structure_dump_task.invoke end