Skip to content

Commit

Permalink
Scale greater than precision is only supported on PostgreSQL 15+
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Dec 21, 2022
1 parent e9cb6ab commit f3c5b14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/integration/schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@
case DB.database_type
when :postgres
int_types.concat([:smallint, :int2, :int4, :int8])
decimal_types.concat(["numeric(3, 5)"])
decimal_types.concat(["numeric(3, -2)"]) if DB.server_version >= 150000
decimal_types.concat(["numeric(3, 5)", "numeric(3, -2)"]) if DB.server_version >= 150000
when :mysql
if DB.send(:supports_check_constraints?)
int_types.concat([:tinyint, :smallint, :mediumint, 'int(9)', 'tinyint(2)', "integer unsigned", "bigint unsigned", "tinyint unsigned", "smallint unsigned", "mediumint unsigned", 'int(9) unsigned', 'tinyint(2) unsigned'])
Expand Down

0 comments on commit f3c5b14

Please sign in to comment.