From 7958308ef66aece2d24ab1b884f4facb4751da70 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Thu, 23 Apr 2009 18:54:04 -0300 Subject: More progress on migrations. Arel updated. --- activerecord/lib/active_record/migration.rb | 3 ++- arel | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 8cb5febbb6..c8db31700b 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -413,7 +413,8 @@ module ActiveRecord end def get_all_versions - Base.connection.select_values("SELECT version FROM #{schema_migrations_table_name}").map(&:to_i).sort + table = Arel(schema_migrations_table_name) + table.project(table['version']).select_values.map(&:to_i).sort end def current_version diff --git a/arel b/arel index 318cf575eb..a454d45403 160000 --- a/arel +++ b/arel @@ -1 +1 @@ -Subproject commit 318cf575eb2b7cf42cb133b3f24cd1aa5fa5e155 +Subproject commit a454d45403cd0b8a24b05b7ff37021e307905825 -- cgit v1.2.3