aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/tasks/database_tasks.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-11-01 09:49:57 +0100
committerArun Agrawal <arunagw@gmail.com>2013-11-01 09:49:57 +0100
commit816126862e040b787cf11c8143f326798803f67c (patch)
treeb0db65713968230ece18f6959f173bc9fcff70d8 /activerecord/lib/active_record/tasks/database_tasks.rb
parent1adcebdb582f1cd091c5472d864e7c97b99333d0 (diff)
downloadrails-816126862e040b787cf11c8143f326798803f67c.tar.gz
rails-816126862e040b787cf11c8143f326798803f67c.tar.bz2
rails-816126862e040b787cf11c8143f326798803f67c.zip
Warnings removed for ruby trunk
Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
Diffstat (limited to 'activerecord/lib/active_record/tasks/database_tasks.rb')
-rw-r--r--activerecord/lib/active_record/tasks/database_tasks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb
index b91bbeb412..be7d496d15 100644
--- a/activerecord/lib/active_record/tasks/database_tasks.rb
+++ b/activerecord/lib/active_record/tasks/database_tasks.rb
@@ -146,7 +146,7 @@ module ActiveRecord
end
def check_schema_file(filename)
- unless File.exists?(filename)
+ unless File.exist?(filename)
message = %{#{filename} doesn't exist yet. Run `rake db:migrate` to create it, then try again.}
message << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails)
Kernel.abort message