1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure that the schema information table is available before doing any migration

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-03-01 14:50:48 +00:00
parent eac7cf0b06
commit bc05cb1855

View file

@ -31,6 +31,7 @@ module ActiveRecord
def initialize(direction, migrations_path, target_version = nil)
@direction, @migrations_path, @target_version = direction, migrations_path, target_version
Base.connection.initialize_schema_information
end
def current_version
@ -44,7 +45,6 @@ module ActiveRecord
Base.logger.info "Migrating to #{migration_class} (#{version})"
migration_class.send(@direction)
set_schema_version(version)
end
end