diff options
author | Xavier Noria <fxn@hashref.com> | 2016-04-11 16:53:21 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-04-11 16:55:05 +0200 |
commit | fbfc91de32dc04e19258e74283d8786edb21917f (patch) | |
tree | 6e7ef5e4ff080dee665673c13ad55085af7f3db7 /activerecord | |
parent | 0caf8ffd7d19a3a3c8d7eca158b4ea66185ce4ae (diff) | |
download | rails-fbfc91de32dc04e19258e74283d8786edb21917f.tar.gz rails-fbfc91de32dc04e19258e74283d8786edb21917f.tar.bz2 rails-fbfc91de32dc04e19258e74283d8786edb21917f.zip |
issue FileUtils commands directly in Rake tasks
Rake includes (an extended version of) FileUtils in tasks.
It is more idiomatic that they use this provided interface.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index 65c91855da..fc1b62ee96 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -278,7 +278,7 @@ db_namespace = namespace :db do desc 'Clears a db/schema_cache.dump file.' task :clear => [:environment, :load_config] do filename = File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, "schema_cache.dump") - FileUtils.rm(filename) if File.exist?(filename) + rm_f filename, verbose: false end end |