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

Record score in db and update when match is updated

This commit is contained in:
2015-11-17 15:28:54 +00:00
parent 045b869607
commit 1aee738eb5
5 changed files with 13 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151111130227) do
ActiveRecord::Schema.define(version: 20151117152454) do
create_table "matches", force: :cascade do |t|
t.integer "w1"
@@ -37,7 +37,7 @@ ActiveRecord::Schema.define(version: 20151111130227) do
add_index "matches", ["mat_id"], name: "index_matches_on_mat_id"
add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id"
add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2"
add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2", unique: true
create_table "mats", force: :cascade do |t|
t.string "name"
@@ -53,6 +53,7 @@ ActiveRecord::Schema.define(version: 20151111130227) do
t.datetime "created_at"
t.datetime "updated_at"
t.integer "tournament_id"
t.decimal "score"
end
add_index "schools", ["tournament_id"], name: "index_schools_on_tournament_id"
@@ -79,6 +80,7 @@ ActiveRecord::Schema.define(version: 20151111130227) do
end
add_index "tournaments", ["user_id"], name: "index_tournaments_on_user_id"
add_index "tournaments", ["weigh_in_ref"], name: "index_tournaments_on_weigh_in_ref"
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
@@ -122,6 +124,7 @@ ActiveRecord::Schema.define(version: 20151111130227) do
t.decimal "offical_weight"
end
add_index "wrestlers", ["offical_weight"], name: "index_wrestlers_on_offical_weight"
add_index "wrestlers", ["weight_id"], name: "index_wrestlers_on_weight_id"
end