Skip to content

Commit 7e738a5

Browse files
authored
Merge pull request rails#43267 from the-spectator/big_int_generator_fix
Fixes rails#43266 Add `bigint` to `NATIVE_DATABASE_TYPES` in mysql & postgres adapter
2 parents 49bc29a + 2ac78b1 commit 7e738a5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class AbstractMysqlAdapter < AbstractAdapter
3131
string: { name: "varchar", limit: 255 },
3232
text: { name: "text" },
3333
integer: { name: "int", limit: 4 },
34+
bigint: { name: "bigint" },
3435
float: { name: "float", limit: 24 },
3536
decimal: { name: "decimal" },
3637
datetime: { name: "datetime" },

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def new_client(conn_params)
125125
string: { name: "character varying" },
126126
text: { name: "text" },
127127
integer: { name: "integer", limit: 4 },
128+
bigint: { name: "bigint" },
128129
float: { name: "float" },
129130
decimal: { name: "decimal" },
130131
datetime: {}, # set dynamically based on datetime_type

0 commit comments

Comments
 (0)