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:
@@ -0,0 +1,5 @@
|
||||
class AddTournamentIdToMatches < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :tournament_id, :integer
|
||||
end
|
||||
end
|
||||
5
db/migrate/20140125062040_add_round_to_match.rb
Normal file
5
db/migrate/20140125062040_add_round_to_match.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddRoundToMatch < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :round, :integer
|
||||
end
|
||||
end
|
||||
10
db/migrate/20140125065007_create_mats.rb
Normal file
10
db/migrate/20140125065007_create_mats.rb
Normal 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
|
||||
5
db/migrate/20140125065443_add_mat_id_to_weights.rb
Normal file
5
db/migrate/20140125065443_add_mat_id_to_weights.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddMatIdToWeights < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :weights, :mat_id, :integer
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddFinishedFieldToMatches < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :finished, :integer
|
||||
end
|
||||
end
|
||||
13
db/schema.rb
13
db/schema.rb
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user