mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 06:28:33 +00:00
Got stuff working with matches being saved individually.
This commit is contained in:
6
db/migrate/20150426190405_add_w_names_to_match.rb
Normal file
6
db/migrate/20150426190405_add_w_names_to_match.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddWNamesToMatch < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :w1_name, :string
|
||||
add_column :matches, :w2_name, :string
|
||||
end
|
||||
end
|
||||
6
db/migrate/20150426191006_change_w_name_to_loser_name.rb
Normal file
6
db/migrate/20150426191006_change_w_name_to_loser_name.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class ChangeWNameToLoserName < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :matches, :w1_name, :loser1_name
|
||||
rename_column :matches, :w2_name, :loser2_name
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150425173224) do
|
||||
ActiveRecord::Schema.define(version: 20150426191006) do
|
||||
|
||||
create_table "matches", force: :cascade do |t|
|
||||
t.integer "w1"
|
||||
@@ -30,6 +30,8 @@ ActiveRecord::Schema.define(version: 20150425173224) do
|
||||
t.integer "weight_id"
|
||||
t.string "bracket_position"
|
||||
t.integer "bracket_position_number"
|
||||
t.string "loser1_name"
|
||||
t.string "loser2_name"
|
||||
end
|
||||
|
||||
create_table "mats", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user