Method: ActiveRecord::SchemaMigration#versions

Defined in:
activerecord/lib/active_record/schema_migration.rb

#versionsObject



77
78
79
80
81
82
83
84
85
# File 'activerecord/lib/active_record/schema_migration.rb', line 77

def versions
  sm = Arel::SelectManager.new(arel_table)
  sm.project(arel_table[primary_key])
  sm.order(arel_table[primary_key].asc)

  @pool.with_connection do |connection|
    connection.select_values(sm, "#{self.class} Load")
  end
end