diff --git a/lib/seed_migrator/seeds.rb b/lib/seed_migrator/seeds.rb index 240b631..8a7f7b9 100644 --- a/lib/seed_migrator/seeds.rb +++ b/lib/seed_migrator/seeds.rb @@ -34,7 +34,7 @@ def apply_updates(updates_path) # @param [String] updates_path # @return [Array] def get_update_files(updates_path) - if File.exists?(updates_path) && File.directory?(updates_path) + if File.exist?(updates_path) && File.directory?(updates_path) Dir.entries(updates_path).select { |file| file.ends_with? '.rb' }.sort