1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add bigint to NATIVE_DATABASE_TYPES in mysql & postgres adapter

This commit is contained in:
Akshay Birajdar 2021-09-20 12:19:34 +05:30
parent 5aa6083335
commit 2ac78b16df
2 changed files with 2 additions and 0 deletions

View file

@ -31,6 +31,7 @@ module ActiveRecord
string: { name: "varchar", limit: 255 },
text: { name: "text" },
integer: { name: "int", limit: 4 },
bigint: { name: "bigint" },
float: { name: "float", limit: 24 },
decimal: { name: "decimal" },
datetime: { name: "datetime" },

View file

@ -125,6 +125,7 @@ module ActiveRecord
string: { name: "character varying" },
text: { name: "text" },
integer: { name: "integer", limit: 4 },
bigint: { name: "bigint" },
float: { name: "float" },
decimal: { name: "decimal" },
datetime: {}, # set dynamically based on datetime_type