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

Track stats on match page

This commit is contained in:
2015-12-16 17:48:32 +00:00
parent 27f5db32fa
commit 90bf95cd11
3 changed files with 199 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
class RenameStats < ActiveRecord::Migration
def change
rename_column :matches, :g_stat, :w1_stat
rename_column :matches, :r_stat, :w2_stat
end
end

View File

@@ -11,13 +11,13 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151117152454) do
ActiveRecord::Schema.define(version: 20151216154211) do
create_table "matches", force: :cascade do |t|
t.integer "w1"
t.integer "w2"
t.text "g_stat"
t.text "r_stat"
t.text "w1_stat"
t.text "w2_stat"
t.integer "winner_id"
t.string "win_type"
t.string "score"