mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-07 06:54:16 +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
|
||||
Reference in New Issue
Block a user