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: spec_helper.rb
    path of file: ./repos/database_validations/spec
    
    the code of the file until where you have to start completion: require 'bundler/setup'
require 'database_validations'
require 'shared/raise_index_not_found'
require 'db-query-matchers'

# Use this constant to enable Rails 5+ compatible specs
RAILS_5 = ActiveRecord::VERSION::MAJOR >= 5

    
def define_class(parent = ActiveRecord::Base, table_name = :entities, &block)
  Class.new(parent) do |klass|
    self.table_name = table_name

    def self.model_name
      ActiveModel::Name.new(self, nil, 'temp')
    end

    reset_column_information

    klass.instance_exec(&block) if block_given?
  end
end