1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 05:27:25 +00:00

Revert "Revert "Moving away from matchups_array and saving matches individually""

This reverts commit 7b3fe2aaad.
This commit is contained in:
2015-04-25 21:44:08 -04:00
parent 7b3fe2aaad
commit b86211102b
6 changed files with 67 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
class MatchupToMatch < ActiveRecord::Migration
def change
add_column :matches, :weight_id, :integer
add_column :matches, :bracket_position, :string
add_column :matches, :bracket_position_number, :integer
rename_column :matches, :r_id, :w1
rename_column :matches, :g_id, :w2
end
end

View File

@@ -11,11 +11,11 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150328183257) do
ActiveRecord::Schema.define(version: 20150425173224) do
create_table "matches", force: :cascade do |t|
t.integer "r_id"
t.integer "g_id"
t.integer "w1"
t.integer "w2"
t.text "g_stat"
t.text "r_stat"
t.integer "winner_id"
@@ -27,6 +27,9 @@ ActiveRecord::Schema.define(version: 20150328183257) do
t.integer "round"
t.integer "finished"
t.integer "boutNumber"
t.integer "weight_id"
t.string "bracket_position"
t.integer "bracket_position_number"
end
create_table "mats", force: :cascade do |t|