mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 07:22:38 +00:00
Changed weights max to decimal
This commit is contained in:
5
db/migrate/20230202130918_change_weight_to_float.rb
Normal file
5
db/migrate/20230202130918_change_weight_to_float.rb
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
class ChangeWeightToFloat < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
change_column :weights, :max, :decimal, precision: 15, scale: 1
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "delayed_jobs", force: :cascade do |t|
|
||||||
t.integer "priority", default: 0, null: false
|
t.integer "priority", default: 0, null: false
|
||||||
@@ -130,7 +130,7 @@ ActiveRecord::Schema.define(version: 2023_01_02_040503) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
create_table "weights", force: :cascade do |t|
|
create_table "weights", force: :cascade do |t|
|
||||||
t.integer "max"
|
t.decimal "max", precision: 15, scale: 1
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.integer "tournament_id"
|
t.integer "tournament_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user