1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Changed weights max to decimal

This commit is contained in:
2023-02-02 13:16:13 +00:00
parent f011dae730
commit 05b42dbf0e
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class ChangeWeightToFloat < ActiveRecord::Migration[6.1]
def change
change_column :weights, :max, :decimal, precision: 15, scale: 1
end
end

View File

@@ -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"