Skip to content

Commit

Permalink
Ensure Rails::Sequel::Migrations.pending_migrations? check for migr…
Browse files Browse the repository at this point in the history
…ation directory
  • Loading branch information
JonathanTron committed Oct 23, 2012
1 parent 662c523 commit aa3ad20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sequel-rails/migrations.rb
Expand Up @@ -17,6 +17,7 @@ def migrate_down!(version=nil)
end

def pending_migrations?
return false unless File.exists?("db/migrate")
!::Sequel::Migrator.is_current?(::Sequel::Model.db, "db/migrate")
end
end
Expand Down

0 comments on commit aa3ad20

Please sign in to comment.