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:
6
db/migrate/20151216154211_rename_stats.rb
Normal file
6
db/migrate/20151216154211_rename_stats.rb
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user