You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: model.rb
    path of file: ./repos/souls/lib/souls/cli/db
    
    the code of the file until where you have to start completion: module SOULs
  class DB < Thor
    desc "model [CLASS_NAME]", "Generate Model Template"
    def model(class_name)
      file_dir = "./app/models/"
      FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
      file_path = "#{file_dir}#{class_name.singularize}.rb"
      return "Model already
    
    def model(class_name)
      file_dir = "./app/models/"
      FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
      file_path = "#{file_dir}#{class_name.singularize}.rb"
      return "Model already exist! #{file_path}" if File.exist?(file_path)

      File.open(file_path, "w") do |f|
        f.write(<<~TEXT)
          class #{class_name.camelize} < ActiveRecord::Base
          end
        TEXT
      end