class ActiveRecord::Migration::Compatibility::V5_2

def add_timestamps(table_name, **options)

def add_timestamps(table_name, **options)
  options[:precision] ||= nil
  super
end

def change_table(table_name, **options)

def change_table(table_name, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end

def command_recorder

def command_recorder
  recorder = super
  class << recorder
    prepend CommandRecorder
  end
  recorder
end

def compatible_table_definition(t)

def compatible_table_definition(t)
  class << t
    prepend TableDefinition
  end
  super
end

def create_join_table(table_1, table_2, **options)

def create_join_table(table_1, table_2, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end

def create_table(table_name, **options)

def create_table(table_name, **options)
  if block_given?
    super { |t| yield compatible_table_definition(t) }
  else
    super
  end
end