1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-05 22:21:26 +00:00

A ton of stuff was done to finalize the app for use

This commit is contained in:
Jacob Cody Wimer
2014-01-25 05:28:42 -05:00
parent 7f8718af35
commit c5a7bc3815
45 changed files with 889 additions and 22 deletions

View File

@@ -0,0 +1,5 @@
class AddTournamentIdToMatches < ActiveRecord::Migration
def change
add_column :matches, :tournament_id, :integer
end
end

View File

@@ -0,0 +1,5 @@
class AddRoundToMatch < ActiveRecord::Migration
def change
add_column :matches, :round, :integer
end
end

View File

@@ -0,0 +1,10 @@
class CreateMats < ActiveRecord::Migration
def change
create_table :mats do |t|
t.string :name
t.integer :tournament_id
t.timestamps
end
end
end

View File

@@ -0,0 +1,5 @@
class AddMatIdToWeights < ActiveRecord::Migration
def change
add_column :weights, :mat_id, :integer
end
end

View File

@@ -0,0 +1,5 @@
class AddFinishedFieldToMatches < ActiveRecord::Migration
def change
add_column :matches, :finished, :integer
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140124174110) do
ActiveRecord::Schema.define(version: 20140125072649) do
create_table "matches", force: true do |t|
t.integer "r_id"
@@ -23,6 +23,16 @@ ActiveRecord::Schema.define(version: 20140124174110) do
t.string "score"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "tournament_id"
t.integer "round"
t.integer "finished"
end
create_table "mats", force: true do |t|
t.string "name"
t.integer "tournament_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "schools", force: true do |t|
@@ -65,6 +75,7 @@ ActiveRecord::Schema.define(version: 20140124174110) do
t.datetime "created_at"
t.datetime "updated_at"
t.integer "tournament_id"
t.integer "mat_id"
end
create_table "wrestlers", force: true do |t|