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:
15
db/migrate/20140124174110_create_matches.rb
Normal file
15
db/migrate/20140124174110_create_matches.rb
Normal 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
|
||||
14
db/schema.rb
14
db/schema.rb
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user