Skip to content

Commit 2ac78b1

Browse files
committed
Add bigint to NATIVE_DATABASE_TYPES in mysql & postgres adapter
1 parent 5aa6083 commit 2ac78b1

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)