diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-01 14:50:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-01 14:50:48 +0000 |
commit | bc05cb18555582924fa398086ae78c1a11a108a5 (patch) | |
tree | 5f21803905e43a6bf3bd57c91e72867e96cacd52 /activerecord/lib | |
parent | eac7cf0b0608132673220d9045b8ff51dc0804e1 (diff) | |
download | rails-bc05cb18555582924fa398086ae78c1a11a108a5.tar.gz rails-bc05cb18555582924fa398086ae78c1a11a108a5.tar.bz2 rails-bc05cb18555582924fa398086ae78c1a11a108a5.zip |
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
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 8734a0831e..63ff46b014 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -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 |