aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-09-24 14:48:55 +0200
committerXavier Noria <fxn@hashref.com>2012-09-24 14:48:55 +0200
commit4ad90b02461a313aa2aed5cac7e7968864652222 (patch)
treef100fdcd5dc28590416602f92714df633e6509a9
parent780ecb2bc1cd756d8814c0f7fd27f263e6282447 (diff)
downloadrails-4ad90b02461a313aa2aed5cac7e7968864652222.tar.gz
rails-4ad90b02461a313aa2aed5cac7e7968864652222.tar.bz2
rails-4ad90b02461a313aa2aed5cac7e7968864652222.zip
make clear that expired db/schema_cache.dump are ignored
-rw-r--r--activerecord/lib/active_record/railtie.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb
index a9f80ccd5f..41b3386c00 100644
--- a/activerecord/lib/active_record/railtie.rb
+++ b/activerecord/lib/active_record/railtie.rb
@@ -82,7 +82,7 @@ module ActiveRecord
if cache.version == ActiveRecord::Migrator.current_version
ActiveRecord::Model.connection.schema_cache = cache
else
- warn "schema_cache.dump is expired. Current version is #{ActiveRecord::Migrator.current_version}, but cache version is #{cache.version}."
+ warn "Ignoring db/schema_cache.dump because it has expired. The current schema version is #{ActiveRecord::Migrator.current_version}, but the one in the cache is #{cache.version}."
end
end
end