Skip to content

A platform for community discussion. Free, open, simple.

Bump minimum Ruby version to 3.1 (#19848)

David Taylorab9ea509170c
diff --git a/config/application.rb b/config/application.rb
index 0c31d3a327c..466fe3fcc97 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
-if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.7.0")
- STDERR.puts "Discourse requires Ruby 2.7 or above"
+if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.1.0")
+ STDERR.puts "Discourse requires Ruby 3.1 or above"
exit 1
end