mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
A ton of stuff was done to finalize the app for use
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddTournamentIdToMatches < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :tournament_id, :integer
|
||||
end
|
||||
end
|
||||
5
db/migrate/20140125062040_add_round_to_match.rb
Normal file
5
db/migrate/20140125062040_add_round_to_match.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddRoundToMatch < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :round, :integer
|
||||
end
|
||||
end
|
||||
10
db/migrate/20140125065007_create_mats.rb
Normal file
10
db/migrate/20140125065007_create_mats.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateMats < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :mats do |t|
|
||||
t.string :name
|
||||
t.integer :tournament_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
5
db/migrate/20140125065443_add_mat_id_to_weights.rb
Normal file
5
db/migrate/20140125065443_add_mat_id_to_weights.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddMatIdToWeights < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :weights, :mat_id, :integer
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddFinishedFieldToMatches < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :matches, :finished, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user