diff options
author | Sam Pohlenz <sam@sampohlenz.com> | 2011-07-03 13:02:58 +0930 |
---|---|---|
committer | Sam Pohlenz <sam@sampohlenz.com> | 2011-07-03 13:02:58 +0930 |
commit | a7a58af244412f507048d3e2118eeca4992b705e (patch) | |
tree | a312359301b90de8917106bde44ec615e33d8bc5 /railties/lib | |
parent | 9d6e5e64dcd129132c3c565d0b6ead8c9bf45c2f (diff) | |
download | rails-a7a58af244412f507048d3e2118eeca4992b705e.tar.gz rails-a7a58af244412f507048d3e2118eeca4992b705e.tar.bz2 rails-a7a58af244412f507048d3e2118eeca4992b705e.zip |
Fix has_migrations? check in Rails::Engine
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index bf57a034b2..eb6fcd5dd7 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -586,7 +586,7 @@ module Rails end def has_migrations? - paths["db/migrate"].first.present? + paths["db/migrate"].existent.any? end def find_root_with_flag(flag, default=nil) |