mirror of https://github.com/rails/rails
Fixed migration initialization of table
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
4db3a40471
commit
a43c227f84
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue