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: active_record.rb
    path of file: ./repos/hoboken/lib/hoboken/add_ons
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Hoboken
  module AddOns
    # ActiveRecord database access via sinatra-activerecord gem.
    #
    class ActiveRecord < Hoboken::Group
      def add_gems
        gem 'sinatra-activerecord', version: '2.0'
        gem 'sqlite3', version: '1.4', group: %i[development test]
      end

      def setup_directories
        empty_directory('db/migrate')
        empty_directory('tasks')
      end

      def copy_example_seeds_file
        copy_file('hoboken/templates/
    
      def add_database_test_helper_class
        return if rspec?

        insert_into_file('test/test_helper.rb', before: /ENV\['RACK_ENV'\] = 'test'/) do
          "ENV['DATABASE_URL'] = 'sqlite3:db/test.db'\n"
        end

        snippet = <<~CODE
          def run(*args, &block)
            result = nil
            ActiveRecord::Base.connection.transaction do
              result = super
              raise ActiveRecord::Rollback
            end
            result
          end
        CODE

        insert_into_file('test/test_helper.rb', after: /include RackHelpers\n/) do
          "\n#{indent(snippet, 6)}"
        end
      end