1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 05:43:47 +00:00

Added matches scaffold and ascended views of weights and schools

This commit is contained in:
Jacob Cody Wimer
2014-01-24 15:16:33 -05:00
parent ec17963c28
commit 7f8718af35
24 changed files with 339 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
class CreateMatches < ActiveRecord::Migration
def change
create_table :matches do |t|
t.integer :r_id
t.integer :g_id
t.text :g_stat
t.text :r_stat
t.integer :winner_id
t.string :win_type
t.string :score
t.timestamps
end
end
end

View File

@@ -11,7 +11,19 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140124021031) do
ActiveRecord::Schema.define(version: 20140124174110) do
create_table "matches", force: true do |t|
t.integer "r_id"
t.integer "g_id"
t.text "g_stat"
t.text "r_stat"
t.integer "winner_id"
t.string "win_type"
t.string "score"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "schools", force: true do |t|
t.string "name"