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: xss-hunter.rb
    path of file: ./repos/BHR_Labs/ch13
    
    the code of the file until where you have to start completion: #!/usr/bin/env ruby
# =================================================
    
  def self.setup_database
    ActiveRecord::Base.establish_connection(
      adapter:  "sqlite3",
      dbfile:   ":memory:",
      database: "xss-hunter.db",
      pool:     50
    )
    unless ActiveRecord::Base.connection.table_exists? :sessions
      ActiveRecord::Schema.define do
        create_table :sessions do |table|
            table.column :target,     :string
            table.column :cookie,     :string
            table.column :created_at, :datetime
        end
      end
    end