mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user