Permalink
Browse files

Make sure the schema_info table is created before querying the curren…

…t version #1903

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent fd9c15e commit 7a0e1bd56ae4eb50e933cd33d8a44fedbf1eb4ef @jamis jamis committed Sep 2, 2005
Showing with 3 additions and 0 deletions.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −0 activerecord/lib/active_record/migration.rb
View
2 activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Make sure the schema_info table is created before querying the current version #1903
+
* Fixtures ignore table name prefix and suffix #1987 [Jakob S]
* Add documentation for index_type argument to add_index method for migrations #2005 [blaine@odeo.com]
View
1 activerecord/lib/active_record/migration.rb
@@ -135,6 +135,7 @@ def method_missing(method, *arguments, &block)
class Migrator#:nodoc:
class << self
def migrate(migrations_path, target_version = nil)
+ Base.connection.initialize_schema_information
case
when target_version.nil?, current_version < target_version
up(migrations_path, target_version)

0 comments on commit 7a0e1bd

Please sign in to comment.