Skip to content

Commit

Permalink
DEV-7136 #time 5m Add 'limit' parameter to NATIVE_DATABASE_TYPES inte…
Browse files Browse the repository at this point in the history
…ger objects to prevent the 'limit' being written out by SchemaDumper, as it is unnecessary.
  • Loading branch information
Victor Miao committed May 10, 2021
1 parent 1f023b3 commit 8d4e1d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/active_record/connection_adapters/redshift_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ class RedshiftAdapter < AbstractAdapter
string: { name: "varchar" },
text: { name: "varchar" },
varchar: { name: "varchar" },
smallint: { name: "smallint" },
int: { name: "integer" },
integer: { name: "integer" },
bigint: { name: "bigint" },
smallint: { name: "smallint", limit: 2 },
int: { name: "integer", limit: 4 },
integer: { name: "integer", limit: 4 },
bigint: { name: "bigint", limit: 8 },
float: { name: "float" },
decimal: { name: "decimal" },
datetime: { name: "timestamp" },
timestamptz: { name: "timestamptz" },
time: { name: "time" },
date: { name: "date" },
boolean: { name: "boolean" },
serial: { name: "integer" },
bigserial: { name: "bigint" },
serial: { name: "integer", limit: 4 },
bigserial: { name: "bigint", limit: 8 },
}

OID = Redshift::OID #:nodoc:
Expand Down

0 comments on commit 8d4e1d1

Please sign in to comment.