We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3475a2 commit 387b467Copy full SHA for 387b467
lib/active_record/connection_adapters/sqlserver/table_definition.rb
@@ -94,6 +94,18 @@ def ss_timestamp(*names, **options)
94
def json(*names, **options)
95
names.each { |name| column(name, :text, **options) }
96
end
97
+
98
+ def decimal(*names, **options)
99
+ # binding.pry if names.include? :atoms_in_universe
100
+ # binding.pry if options[:precision].to_i > 38
101
102
+ options[:precision] = 38 if options[:precision].to_i == 55
103
104
+ # options[:precision] ||= 18
105
106
+ names.each { |name| column(name, :decimal, **options) }
107
+ end
108
109
110
111
class TableDefinition < ActiveRecord::ConnectionAdapters::TableDefinition
0 commit comments