diff options
author | Jamis Buck <jamis@37signals.com> | 2005-09-02 14:20:20 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-09-02 14:20:20 +0000 |
commit | 7a0e1bd56ae4eb50e933cd33d8a44fedbf1eb4ef (patch) | |
tree | 3fa3a5f3677535b5a7ad7b1aa935cb6afad49e50 /activerecord | |
parent | fd9c15e420a8b7219126962ecb44a19542335122 (diff) | |
download | rails-7a0e1bd56ae4eb50e933cd33d8a44fedbf1eb4ef.tar.gz rails-7a0e1bd56ae4eb50e933cd33d8a44fedbf1eb4ef.tar.bz2 rails-7a0e1bd56ae4eb50e933cd33d8a44fedbf1eb4ef.zip |
Make sure the schema_info table is created before querying the current version #1903
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 8405ba92c9..be367e52c0 100644 --- a/activerecord/CHANGELOG +++ b/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] diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 1e0a3b7ab0..5bfa00c19a 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -135,6 +135,7 @@ module ActiveRecord 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) |