More progress on migrations. Arel updated.

This commit is contained in:
Emilio Tagua
2009-04-23 18:54:04 -03:00
parent d8f99c36ba
commit 7958308ef6
2 changed files with 3 additions and 2 deletions

View File

@@ -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

2
arel

Submodule arel updated: 318cf575eb...a454d45403