Rails Float Field Model

[Solved] Rails Float Field Model | Ruby - Code Explorer | yomemimo.com
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

Answers related to rails float field model

Code Explorer Popular Question For Ruby