mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
More progress on migrations. Arel updated.
This commit is contained in:
@@ -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
2
arel
Submodule arel updated: 318cf575eb...a454d45403
Reference in New Issue
Block a user