Permalink
Browse files

More progress on migrations. Arel updated.

  • Loading branch information...
1 parent d8f99c3 commit 7958308ef66aece2d24ab1b884f4facb4751da70 @miloops miloops committed Apr 23, 2009
Showing with 3 additions and 2 deletions.
  1. +2 −1 activerecord/lib/active_record/migration.rb
  2. +1 −1 arel
@@ -413,7 +413,8 @@ def schema_migrations_table_name
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

0 comments on commit 7958308

Please sign in to comment.