Skip to content

Commit

Permalink
Make the primary key auto-increment as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jschementi committed May 1, 2009
1 parent 8fe833a commit cd1a049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mssql_adapter.rb
Expand Up @@ -74,7 +74,7 @@ def disconnect!

def native_database_types #:nodoc:
{
:primary_key => "int not null primary key",
:primary_key => "int not null identity(1,1) primary key ",
:string => { :name => "varchar", :limit => 255 },
:text => { :name => "text" },
:integer => { :name => "int" },
Expand Down Expand Up @@ -488,4 +488,4 @@ def column_definitions(table_name) #:nodoc:
end
end
end
end
end

0 comments on commit cd1a049

Please sign in to comment.