Question : rails float field model
Answered by : expensive-elk-0rtpzwli0dld
Copyclass CreateFakes < ActiveRecord::Migration def change create_table :fakes do |t| t.decimal :float_value, :precision => 4, :scale => 3 end end
end
Source : https://makandracards.com/konjoot/20755-rails-migration-add-float-point-field-with-scale-and-precision | Last Update : Sat, 20 Jun 20