Class: ActiveRecord::Migrator

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/ibm_db_pstmt.rb

Overview

End of module calculations

Class Method Summary collapse

Class Method Details

.get_all_versionsObject



976
977
978
979
980
# File 'lib/active_record/connection_adapters/ibm_db_pstmt.rb', line 976

def get_all_versions
  sql = "SELECT version FROM #{schema_migrations_table_name}"
  # Check method prepared_select_values signature to know the reason for the hash in the argument below
  Base.connection.prepared_select_values({"sqlSegment" => sql, "paramArray" => nil}).map(&:to_i).sort
end