Skip to content

Commit

Permalink
Ensure that the schema information table is available before doing an…
Browse files Browse the repository at this point in the history
…y migration

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Mar 1, 2005
1 parent eac7cf0 commit bc05cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/migration.rb
Expand Up @@ -31,6 +31,7 @@ def current_version

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
Expand All @@ -44,7 +45,6 @@ def migrate

Base.logger.info "Migrating to #{migration_class} (#{version})"
migration_class.send(@direction)

set_schema_version(version)
end
end
Expand Down

0 comments on commit bc05cb1

Please sign in to comment.