mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 21:24:25 +00:00
Deducted points pool tie breaker added
This commit is contained in:
10
db/migrate/20151111130227_create_teampointadjusts.rb
Normal file
10
db/migrate/20151111130227_create_teampointadjusts.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateTeampointadjusts < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :teampointadjusts do |t|
|
||||
t.integer :points
|
||||
t.integer :wrestler_id
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_index :teampointadjusts, :wrestler_id
|
||||
end
|
||||
end
|
||||
15
db/schema.rb
15
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: 20151023123932) do
|
||||
ActiveRecord::Schema.define(version: 20151111130227) do
|
||||
|
||||
create_table "matches", force: :cascade do |t|
|
||||
t.integer "w1"
|
||||
@@ -37,7 +37,7 @@ ActiveRecord::Schema.define(version: 20151023123932) do
|
||||
|
||||
add_index "matches", ["mat_id"], name: "index_matches_on_mat_id"
|
||||
add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id"
|
||||
add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2", unique: true
|
||||
add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2"
|
||||
|
||||
create_table "mats", force: :cascade do |t|
|
||||
t.string "name"
|
||||
@@ -57,6 +57,15 @@ ActiveRecord::Schema.define(version: 20151023123932) do
|
||||
|
||||
add_index "schools", ["tournament_id"], name: "index_schools_on_tournament_id"
|
||||
|
||||
create_table "teampointadjusts", force: :cascade do |t|
|
||||
t.integer "points"
|
||||
t.integer "wrestler_id"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
add_index "teampointadjusts", ["wrestler_id"], name: "index_teampointadjusts_on_wrestler_id"
|
||||
|
||||
create_table "tournaments", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.string "address"
|
||||
@@ -70,7 +79,6 @@ ActiveRecord::Schema.define(version: 20151023123932) do
|
||||
end
|
||||
|
||||
add_index "tournaments", ["user_id"], name: "index_tournaments_on_user_id"
|
||||
add_index "tournaments", ["weigh_in_ref"], name: "index_tournaments_on_weigh_in_ref"
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "email", default: "", null: false
|
||||
@@ -114,7 +122,6 @@ ActiveRecord::Schema.define(version: 20151023123932) do
|
||||
t.decimal "offical_weight"
|
||||
end
|
||||
|
||||
add_index "wrestlers", ["offical_weight"], name: "index_wrestlers_on_offical_weight"
|
||||
add_index "wrestlers", ["weight_id"], name: "index_wrestlers_on_weight_id"
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user