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

Added a precision and scale to the school score to make sure decimals are stored in mysql

This commit is contained in:
2021-02-22 16:22:06 +00:00
parent 1e30344be8
commit 63b0541aa4
2 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
class AddScaleToTeamScoreDecimal < ActiveRecord::Migration[6.1]
def change
change_column :schools, :score, :decimal, precision: 15, scale: 1
end
end