Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed migration initialization of table

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit a43c227f844ab43c0bf3b1c6ae71002333f62a23 1 parent 4db3a40
@dhh dhh authored
View
2  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -359,7 +359,7 @@ def add_limit_offset!(sql, options)
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
Please sign in to comment.
Something went wrong with that request. Please try again.