diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-04 09:20:43 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-04 09:20:43 +0000 |
commit | a43c227f844ab43c0bf3b1c6ae71002333f62a23 (patch) | |
tree | b9ef223ff5934c2a8127036719ff2c97e927cb87 /activerecord/lib | |
parent | 4db3a40471eed725ffffba5ea3f65da99e5e2971 (diff) | |
download | rails-a43c227f844ab43c0bf3b1c6ae71002333f62a23.tar.gz rails-a43c227f844ab43c0bf3b1c6ae71002333f62a23.tar.bz2 rails-a43c227f844ab43c0bf3b1c6ae71002333f62a23.zip |
Fixed migration initialization of table
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 18891a28ce..1137ea1011 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -359,7 +359,7 @@ module ActiveRecord def initialize_schema_information begin - execute "CREATE TABLE schema_info (version #{native_database_types[:integer][:name]}#{native_database_types[:integer][:limit]})" + execute "CREATE TABLE schema_info (version #{native_database_types[:integer][:name]}(#{native_database_types[:integer][:limit]}))" insert "INSERT INTO schema_info (version) VALUES(0)" rescue ActiveRecord::StatementInvalid # Schema has been intialized |