Skip to content
Browse files

Ensure that the schema information table is available before doing an…

…y migration

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@819 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent eac7cf0 commit bc05cb18555582924fa398086ae78c1a11a108a5 @dhh dhh committed Mar 1, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration.rb
View
2 activerecord/lib/active_record/migration.rb
@@ -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
@@ -44,7 +45,6 @@ def migrate
Base.logger.info "Migrating to #{migration_class} (#{version})"
migration_class.send(@direction)
-
set_schema_version(version)
end
end

0 comments on commit bc05cb1

Please sign in to comment.
Something went wrong with that request. Please try again.