Skip to content

Commit

Permalink
add comment for 'bigserial' type for primary key in default
Browse files Browse the repository at this point in the history
  • Loading branch information
sasamuku committed Nov 29, 2024
1 parent 2a68601 commit b64136d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function extractIdColumn(argNodes: Node[]): Column | null {
}
}

// Since 5.1 PostgreSQL adapter uses bigserial type for primary key in default
// See:https://github.com/rails/rails/blob/v8.0.0/activerecord/lib/active_record/migration/compatibility.rb#L377
idColumn.type = 'bigserial'
return idColumn
}
Expand Down

0 comments on commit b64136d

Please sign in to comment.