diff --git a/lib/rails_version.rb b/app/lib/rails_version.rb similarity index 86% rename from lib/rails_version.rb rename to app/lib/rails_version.rb index 813fed29..415b141f 100644 --- a/lib/rails_version.rb +++ b/app/lib/rails_version.rb @@ -8,7 +8,7 @@ # Methods of this module must match whatever Rails version is defined in Gemfile.next.lock. # Matching on major and minor versions should be enough for most migrations. module RailsVersion - def self.is_6? - Rails::VERSION::MAJOR == 6 + def self.next? + Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR == 2 end end