Skip to content

Commit

Permalink
Check db/migrate/ instead of schema.rb
Browse files Browse the repository at this point in the history
This avoids the problems with schema_format :sql. Fixes mina-deploy#57, mina-deploy#59 and mina-deploy#74.
  • Loading branch information
chuckd committed Mar 31, 2014
1 parent d6d6862 commit 7bba222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mina/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 7bba222

Please sign in to comment.