From 7bba2222157cfe9ea27393b97a5add5e27fc491e Mon Sep 17 00:00:00 2001 From: Charles Dale Date: Tue, 1 Apr 2014 06:53:49 +1100 Subject: [PATCH] Check db/migrate/ instead of schema.rb This avoids the problems with schema_format :sql. Fixes #57, #59 and #74. --- lib/mina/rails.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mina/rails.rb b/lib/mina/rails.rb index dbf29f0f..2e5128e0 100644 --- a/lib/mina/rails.rb +++ b/lib/mina/rails.rb @@ -141,10 +141,10 @@ def check_for_changes_script(options={}) 'Migrating database' queue check_for_changes_script \ - :check => 'db/schema.rb', - :at => ['db/schema.rb'], + :check => 'db/migrate/', + :at => ['db/migrate/'], :skip => %[ - echo "-----> DB schema unchanged; skipping DB migration" + echo "-----> DB migrations unchanged; skipping DB migration" ], :changed => %[ echo "-----> #{message}"