diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index 71772529d2..b28e8da24c 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -95,8 +95,7 @@ module ActiveRecord end initializer "active_record.add_watchable_files" do |app| - files = ["#{app.root}/db/schema.rb", "#{app.root}/db/structure.sql"] - config.watchable_files.concat files.select { |f| File.exist?(f) } + config.watchable_files.concat ["#{app.root}/db/schema.rb", "#{app.root}/db/structure.sql"] end config.after_initialize do |