module Rails::Generators::Testing::Behaviour

def migration_file_name(relative)

def migration_file_name(relative)
  absolute = File.expand_path(relative, destination_root)
  dirname, file_name = File.dirname(absolute), File.basename(absolute).delete_suffix(".rb")
  Dir.glob("#{dirname}/[0-9]*_*.rb").grep(/\d+_#{file_name}.rb$/).first
end