From 05b42dbf0e3cceacf43e43c0eaf1835d352cc0ca Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Thu, 2 Feb 2023 13:16:13 +0000 Subject: [PATCH] Changed weights max to decimal --- db/migrate/20230202130918_change_weight_to_float.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20230202130918_change_weight_to_float.rb diff --git a/db/migrate/20230202130918_change_weight_to_float.rb b/db/migrate/20230202130918_change_weight_to_float.rb new file mode 100644 index 0000000..70702bf --- /dev/null +++ b/db/migrate/20230202130918_change_weight_to_float.rb @@ -0,0 +1,5 @@ +class ChangeWeightToFloat < ActiveRecord::Migration[6.1] + def change + change_column :weights, :max, :decimal, precision: 15, scale: 1 + end +end diff --git a/db/schema.rb b/db/schema.rb index 95dfa3b..58c4858 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2023_01_02_040503) do +ActiveRecord::Schema.define(version: 2023_02_02_130918) do create_table "delayed_jobs", force: :cascade do |t| t.integer "priority", default: 0, null: false @@ -130,7 +130,7 @@ ActiveRecord::Schema.define(version: 2023_01_02_040503) do end create_table "weights", force: :cascade do |t| - t.integer "max" + t.decimal "max", precision: 15, scale: 1 t.datetime "created_at" t.datetime "updated_at" t.integer "tournament_id"