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:
parent
eac7cf0b06
commit
bc05cb1855
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue