Answers for "float rails"

0

rails float field model

Copyclass CreateFakes < ActiveRecord::Migration
  def change
    create_table :fakes do |t|
      t.decimal :float_value, :precision => 4, :scale => 3
    end
  end
end
Posted by: Guest on June-13-2020

Browse Popular Code Answers by Language