diff --git a/db/migrate/20131231134936_create_schools.rb b/db/migrate/20131231134936_create_schools.rb index eb0a252..2fe0964 100644 --- a/db/migrate/20131231134936_create_schools.rb +++ b/db/migrate/20131231134936_create_schools.rb @@ -1,4 +1,4 @@ -class CreateSchools < ActiveRecord::Migration +class CreateSchools < ActiveRecord::Migration[4.2][4.2] def change create_table :schools do |t| t.string :name diff --git a/db/migrate/20131231134955_create_weights.rb b/db/migrate/20131231134955_create_weights.rb index d082d7b..6a672b6 100644 --- a/db/migrate/20131231134955_create_weights.rb +++ b/db/migrate/20131231134955_create_weights.rb @@ -1,4 +1,4 @@ -class CreateWeights < ActiveRecord::Migration +class CreateWeights < ActiveRecord::Migration[4.2] def change create_table :weights do |t| t.integer :max diff --git a/db/migrate/20131231135039_create_wrestlers.rb b/db/migrate/20131231135039_create_wrestlers.rb index 77aa744..113e44c 100644 --- a/db/migrate/20131231135039_create_wrestlers.rb +++ b/db/migrate/20131231135039_create_wrestlers.rb @@ -1,4 +1,4 @@ -class CreateWrestlers < ActiveRecord::Migration +class CreateWrestlers < ActiveRecord::Migration[4.2] def change create_table :wrestlers do |t| t.string :name diff --git a/db/migrate/20140120175252_create_tournaments.rb b/db/migrate/20140120175252_create_tournaments.rb index 3bbcb9b..5ba3857 100644 --- a/db/migrate/20140120175252_create_tournaments.rb +++ b/db/migrate/20140120175252_create_tournaments.rb @@ -1,4 +1,4 @@ -class CreateTournaments < ActiveRecord::Migration +class CreateTournaments < ActiveRecord::Migration[4.2] def change create_table :tournaments do |t| t.string :name diff --git a/db/migrate/20140121020833_school_add_tournament_id.rb b/db/migrate/20140121020833_school_add_tournament_id.rb index eda6192..8ebcef4 100644 --- a/db/migrate/20140121020833_school_add_tournament_id.rb +++ b/db/migrate/20140121020833_school_add_tournament_id.rb @@ -1,4 +1,4 @@ -class SchoolAddTournamentId < ActiveRecord::Migration +class SchoolAddTournamentId < ActiveRecord::Migration[4.2] def change add_column :schools, :tournament_id, :integer end diff --git a/db/migrate/20140122030856_devise_create_users.rb b/db/migrate/20140122030856_devise_create_users.rb index 6e5e27c..8fbd56d 100644 --- a/db/migrate/20140122030856_devise_create_users.rb +++ b/db/migrate/20140122030856_devise_create_users.rb @@ -1,4 +1,4 @@ -class DeviseCreateUsers < ActiveRecord::Migration +class DeviseCreateUsers < ActiveRecord::Migration[4.2] def change create_table(:users) do |t| ## Database authenticatable diff --git a/db/migrate/20140122151620_weight_add_tournament_id.rb b/db/migrate/20140122151620_weight_add_tournament_id.rb index e9243b3..55e2240 100644 --- a/db/migrate/20140122151620_weight_add_tournament_id.rb +++ b/db/migrate/20140122151620_weight_add_tournament_id.rb @@ -1,4 +1,4 @@ -class WeightAddTournamentId < ActiveRecord::Migration +class WeightAddTournamentId < ActiveRecord::Migration[4.2] def change add_column :weights, :tournament_id, :integer end diff --git a/db/migrate/20140123035131_wrestler_add_win_loss_column.rb b/db/migrate/20140123035131_wrestler_add_win_loss_column.rb index 7916459..99c7325 100644 --- a/db/migrate/20140123035131_wrestler_add_win_loss_column.rb +++ b/db/migrate/20140123035131_wrestler_add_win_loss_column.rb @@ -1,4 +1,4 @@ -class WrestlerAddWinLossColumn < ActiveRecord::Migration +class WrestlerAddWinLossColumn < ActiveRecord::Migration[4.2] def change add_column :wrestlers, :season_win, :integer add_column :wrestlers, :season_loss, :integer diff --git a/db/migrate/20140124015315_drop_school_score.rb b/db/migrate/20140124015315_drop_school_score.rb index 36b119f..99b7114 100644 --- a/db/migrate/20140124015315_drop_school_score.rb +++ b/db/migrate/20140124015315_drop_school_score.rb @@ -1,4 +1,4 @@ -class DropSchoolScore < ActiveRecord::Migration +class DropSchoolScore < ActiveRecord::Migration[4.2] def change remove_column :schools, :score end diff --git a/db/migrate/20140124021031_add_school_score.rb b/db/migrate/20140124021031_add_school_score.rb index 58c9dfb..24d1b27 100644 --- a/db/migrate/20140124021031_add_school_score.rb +++ b/db/migrate/20140124021031_add_school_score.rb @@ -1,4 +1,4 @@ -class AddSchoolScore < ActiveRecord::Migration +class AddSchoolScore < ActiveRecord::Migration[4.2] def change add_column :schools, :score, :integer end diff --git a/db/migrate/20140124174110_create_matches.rb b/db/migrate/20140124174110_create_matches.rb index c6023dd..cc987b3 100644 --- a/db/migrate/20140124174110_create_matches.rb +++ b/db/migrate/20140124174110_create_matches.rb @@ -1,4 +1,4 @@ -class CreateMatches < ActiveRecord::Migration +class CreateMatches < ActiveRecord::Migration[4.2] def change create_table :matches do |t| t.integer :r_id diff --git a/db/migrate/20140125040820_add_tournament_id_to_matches.rb b/db/migrate/20140125040820_add_tournament_id_to_matches.rb index cba7ed4..c217929 100644 --- a/db/migrate/20140125040820_add_tournament_id_to_matches.rb +++ b/db/migrate/20140125040820_add_tournament_id_to_matches.rb @@ -1,4 +1,4 @@ -class AddTournamentIdToMatches < ActiveRecord::Migration +class AddTournamentIdToMatches < ActiveRecord::Migration[4.2] def change add_column :matches, :tournament_id, :integer end diff --git a/db/migrate/20140125062040_add_round_to_match.rb b/db/migrate/20140125062040_add_round_to_match.rb index 7cb1fdf..8d2db08 100644 --- a/db/migrate/20140125062040_add_round_to_match.rb +++ b/db/migrate/20140125062040_add_round_to_match.rb @@ -1,4 +1,4 @@ -class AddRoundToMatch < ActiveRecord::Migration +class AddRoundToMatch < ActiveRecord::Migration[4.2] def change add_column :matches, :round, :integer end diff --git a/db/migrate/20140125065007_create_mats.rb b/db/migrate/20140125065007_create_mats.rb index 27ac2e0..4964647 100644 --- a/db/migrate/20140125065007_create_mats.rb +++ b/db/migrate/20140125065007_create_mats.rb @@ -1,4 +1,4 @@ -class CreateMats < ActiveRecord::Migration +class CreateMats < ActiveRecord::Migration[4.2] def change create_table :mats do |t| t.string :name diff --git a/db/migrate/20140125065443_add_mat_id_to_weights.rb b/db/migrate/20140125065443_add_mat_id_to_weights.rb index c04fdd6..d13f0d3 100644 --- a/db/migrate/20140125065443_add_mat_id_to_weights.rb +++ b/db/migrate/20140125065443_add_mat_id_to_weights.rb @@ -1,4 +1,4 @@ -class AddMatIdToWeights < ActiveRecord::Migration +class AddMatIdToWeights < ActiveRecord::Migration[4.2] def change add_column :weights, :mat_id, :integer end diff --git a/db/migrate/20140125072649_add_finished_field_to_matches.rb b/db/migrate/20140125072649_add_finished_field_to_matches.rb index 493d314..11680e2 100644 --- a/db/migrate/20140125072649_add_finished_field_to_matches.rb +++ b/db/migrate/20140125072649_add_finished_field_to_matches.rb @@ -1,4 +1,4 @@ -class AddFinishedFieldToMatches < ActiveRecord::Migration +class AddFinishedFieldToMatches < ActiveRecord::Migration[4.2] def change add_column :matches, :finished, :integer end diff --git a/db/migrate/20140130153634_drop_weight_mat_id.rb b/db/migrate/20140130153634_drop_weight_mat_id.rb index d1de3fb..311a8b1 100644 --- a/db/migrate/20140130153634_drop_weight_mat_id.rb +++ b/db/migrate/20140130153634_drop_weight_mat_id.rb @@ -1,4 +1,4 @@ -class DropWeightMatId < ActiveRecord::Migration +class DropWeightMatId < ActiveRecord::Migration[4.2] def change remove_column :weights, :mat_id end diff --git a/db/migrate/20140131123907_add_seed_criteria_to_wrestler.rb b/db/migrate/20140131123907_add_seed_criteria_to_wrestler.rb index 2b2ab59..968e069 100644 --- a/db/migrate/20140131123907_add_seed_criteria_to_wrestler.rb +++ b/db/migrate/20140131123907_add_seed_criteria_to_wrestler.rb @@ -1,4 +1,4 @@ -class AddSeedCriteriaToWrestler < ActiveRecord::Migration +class AddSeedCriteriaToWrestler < ActiveRecord::Migration[4.2] def change add_column :wrestlers, :criteria, :string end diff --git a/db/migrate/20141226133941_assign_wrestler_pool_number.rb b/db/migrate/20141226133941_assign_wrestler_pool_number.rb index 3a67320..152506d 100644 --- a/db/migrate/20141226133941_assign_wrestler_pool_number.rb +++ b/db/migrate/20141226133941_assign_wrestler_pool_number.rb @@ -1,4 +1,4 @@ -class AssignWrestlerPoolNumber < ActiveRecord::Migration +class AssignWrestlerPoolNumber < ActiveRecord::Migration[4.2] def change add_column :wrestlers, :poolNumber, :integer end diff --git a/db/migrate/20150202180900_add_bout_number_to_match.rb b/db/migrate/20150202180900_add_bout_number_to_match.rb index 4db5814..aa16486 100644 --- a/db/migrate/20150202180900_add_bout_number_to_match.rb +++ b/db/migrate/20150202180900_add_bout_number_to_match.rb @@ -1,4 +1,4 @@ -class AddBoutNumberToMatch < ActiveRecord::Migration +class AddBoutNumberToMatch < ActiveRecord::Migration[4.2] def change add_column :matches, :boutNumber, :integer end diff --git a/db/migrate/20150206025407_add_extra_flag_for_wrestler.rb b/db/migrate/20150206025407_add_extra_flag_for_wrestler.rb index 4aef264..e5fa3f7 100644 --- a/db/migrate/20150206025407_add_extra_flag_for_wrestler.rb +++ b/db/migrate/20150206025407_add_extra_flag_for_wrestler.rb @@ -1,4 +1,4 @@ -class AddExtraFlagForWrestler < ActiveRecord::Migration +class AddExtraFlagForWrestler < ActiveRecord::Migration[4.2] def change add_column :wrestlers, :extra, :boolean end diff --git a/db/migrate/20150317122709_drop_pool_number.rb b/db/migrate/20150317122709_drop_pool_number.rb index 337cac0..a88e75a 100644 --- a/db/migrate/20150317122709_drop_pool_number.rb +++ b/db/migrate/20150317122709_drop_pool_number.rb @@ -1,4 +1,4 @@ -class DropPoolNumber < ActiveRecord::Migration +class DropPoolNumber < ActiveRecord::Migration[4.2] def change remove_column :wrestlers, :poolNumber end diff --git a/db/migrate/20150324233726_add_matchups_to_tournament.rb b/db/migrate/20150324233726_add_matchups_to_tournament.rb index c6f1ef3..2637fce 100644 --- a/db/migrate/20150324233726_add_matchups_to_tournament.rb +++ b/db/migrate/20150324233726_add_matchups_to_tournament.rb @@ -1,4 +1,4 @@ -class AddMatchupsToTournament < ActiveRecord::Migration +class AddMatchupsToTournament < ActiveRecord::Migration[4.2] def change add_column :tournaments, :matchups, :text end diff --git a/db/migrate/20150325004527_rename_tournament_matchups.rb b/db/migrate/20150325004527_rename_tournament_matchups.rb index ec0f6e2..396589a 100644 --- a/db/migrate/20150325004527_rename_tournament_matchups.rb +++ b/db/migrate/20150325004527_rename_tournament_matchups.rb @@ -1,4 +1,4 @@ -class RenameTournamentMatchups < ActiveRecord::Migration +class RenameTournamentMatchups < ActiveRecord::Migration[4.2] def change rename_column :tournaments, :matchups, :matchups_array end diff --git a/db/migrate/20150328183257_drop_school_score_again.rb b/db/migrate/20150328183257_drop_school_score_again.rb index 82e0f7e..1e64d6a 100644 --- a/db/migrate/20150328183257_drop_school_score_again.rb +++ b/db/migrate/20150328183257_drop_school_score_again.rb @@ -1,4 +1,4 @@ -class DropSchoolScoreAgain < ActiveRecord::Migration +class DropSchoolScoreAgain < ActiveRecord::Migration[4.2] def change remove_column :schools, :score end diff --git a/db/migrate/20150425173224_matchup_to_match.rb b/db/migrate/20150425173224_matchup_to_match.rb index 34170e3..05a4cba 100644 --- a/db/migrate/20150425173224_matchup_to_match.rb +++ b/db/migrate/20150425173224_matchup_to_match.rb @@ -1,4 +1,4 @@ -class MatchupToMatch < ActiveRecord::Migration +class MatchupToMatch < ActiveRecord::Migration[4.2] def change add_column :matches, :weight_id, :integer add_column :matches, :bracket_position, :string diff --git a/db/migrate/20150426190405_add_w_names_to_match.rb b/db/migrate/20150426190405_add_w_names_to_match.rb index a2ef847..a605c9f 100644 --- a/db/migrate/20150426190405_add_w_names_to_match.rb +++ b/db/migrate/20150426190405_add_w_names_to_match.rb @@ -1,4 +1,4 @@ -class AddWNamesToMatch < ActiveRecord::Migration +class AddWNamesToMatch < ActiveRecord::Migration[4.2] def change add_column :matches, :w1_name, :string add_column :matches, :w2_name, :string diff --git a/db/migrate/20150426191006_change_w_name_to_loser_name.rb b/db/migrate/20150426191006_change_w_name_to_loser_name.rb index b8f66b5..0a5a116 100644 --- a/db/migrate/20150426191006_change_w_name_to_loser_name.rb +++ b/db/migrate/20150426191006_change_w_name_to_loser_name.rb @@ -1,4 +1,4 @@ -class ChangeWNameToLoserName < ActiveRecord::Migration +class ChangeWNameToLoserName < ActiveRecord::Migration[4.2] def change rename_column :matches, :w1_name, :loser1_name rename_column :matches, :w2_name, :loser2_name diff --git a/db/migrate/20150426195714_drop_matchups_array.rb b/db/migrate/20150426195714_drop_matchups_array.rb index a229a68..9d0f3fe 100644 --- a/db/migrate/20150426195714_drop_matchups_array.rb +++ b/db/migrate/20150426195714_drop_matchups_array.rb @@ -1,4 +1,4 @@ -class DropMatchupsArray < ActiveRecord::Migration +class DropMatchupsArray < ActiveRecord::Migration[4.2] def change remove_column :tournaments, :matchups_array end diff --git a/db/migrate/20150427163325_add_type_to_tournament.rb b/db/migrate/20150427163325_add_type_to_tournament.rb index 03fe083..330c200 100644 --- a/db/migrate/20150427163325_add_type_to_tournament.rb +++ b/db/migrate/20150427163325_add_type_to_tournament.rb @@ -1,4 +1,4 @@ -class AddTypeToTournament < ActiveRecord::Migration +class AddTypeToTournament < ActiveRecord::Migration[4.2] def change add_column :tournaments, :type, :text end diff --git a/db/migrate/20150427163625_rename_type_to_tournament_type.rb b/db/migrate/20150427163625_rename_type_to_tournament_type.rb index 94faa44..c077ec5 100644 --- a/db/migrate/20150427163625_rename_type_to_tournament_type.rb +++ b/db/migrate/20150427163625_rename_type_to_tournament_type.rb @@ -1,4 +1,4 @@ -class RenameTypeToTournamentType < ActiveRecord::Migration +class RenameTypeToTournamentType < ActiveRecord::Migration[4.2] def change end end diff --git a/db/migrate/20150427163818_rename_type_to_tournament_type_for_real.rb b/db/migrate/20150427163818_rename_type_to_tournament_type_for_real.rb index ade959e..2b4524d 100644 --- a/db/migrate/20150427163818_rename_type_to_tournament_type_for_real.rb +++ b/db/migrate/20150427163818_rename_type_to_tournament_type_for_real.rb @@ -1,4 +1,4 @@ -class RenameTypeToTournamentTypeForReal < ActiveRecord::Migration +class RenameTypeToTournamentTypeForReal < ActiveRecord::Migration[4.2] def change rename_column :tournaments, :type, :tournament_type end diff --git a/db/migrate/20150517075923_rename_bout_number.rb b/db/migrate/20150517075923_rename_bout_number.rb index 11065d4..1f1fb23 100644 --- a/db/migrate/20150517075923_rename_bout_number.rb +++ b/db/migrate/20150517075923_rename_bout_number.rb @@ -1,4 +1,4 @@ -class RenameBoutNumber < ActiveRecord::Migration +class RenameBoutNumber < ActiveRecord::Migration[4.2] def change rename_column :matches, :boutNumber, :bout_number end diff --git a/db/migrate/20150523121319_introduce_indexes.rb b/db/migrate/20150523121319_introduce_indexes.rb index f022d14..225d434 100644 --- a/db/migrate/20150523121319_introduce_indexes.rb +++ b/db/migrate/20150523121319_introduce_indexes.rb @@ -1,4 +1,4 @@ -class IntroduceIndexes < ActiveRecord::Migration +class IntroduceIndexes < ActiveRecord::Migration[4.2] def change add_index :weights, :tournament_id add_index :schools, :tournament_id diff --git a/db/migrate/20150619142023_add_mat_id_to_match.rb b/db/migrate/20150619142023_add_mat_id_to_match.rb index c51fc82..dd10798 100644 --- a/db/migrate/20150619142023_add_mat_id_to_match.rb +++ b/db/migrate/20150619142023_add_mat_id_to_match.rb @@ -1,4 +1,4 @@ -class AddMatIdToMatch < ActiveRecord::Migration +class AddMatIdToMatch < ActiveRecord::Migration[4.2] def change add_column :matches, :mat_id, :integer add_index :matches, :mat_id diff --git a/db/migrate/20150630170119_add_offical_weight_wrestlers.rb b/db/migrate/20150630170119_add_offical_weight_wrestlers.rb index 781ac84..45face0 100644 --- a/db/migrate/20150630170119_add_offical_weight_wrestlers.rb +++ b/db/migrate/20150630170119_add_offical_weight_wrestlers.rb @@ -1,4 +1,4 @@ -class AddOfficalWeightWrestlers < ActiveRecord::Migration +class AddOfficalWeightWrestlers < ActiveRecord::Migration[4.2] def change add_column :tournaments, :weigh_in_ref, :text add_column :wrestlers, :offical_weight, :decimal diff --git a/db/migrate/20151023123932_add_user_id_to_tournaments.rb b/db/migrate/20151023123932_add_user_id_to_tournaments.rb index 66926a3..efb9361 100644 --- a/db/migrate/20151023123932_add_user_id_to_tournaments.rb +++ b/db/migrate/20151023123932_add_user_id_to_tournaments.rb @@ -1,4 +1,4 @@ -class AddUserIdToTournaments < ActiveRecord::Migration +class AddUserIdToTournaments < ActiveRecord::Migration[4.2] def change add_column :tournaments, :user_id, :integer add_index :tournaments, :user_id diff --git a/db/migrate/20151111130227_create_teampointadjusts.rb b/db/migrate/20151111130227_create_teampointadjusts.rb index 039a4bb..c6e2d4c 100644 --- a/db/migrate/20151111130227_create_teampointadjusts.rb +++ b/db/migrate/20151111130227_create_teampointadjusts.rb @@ -1,4 +1,4 @@ -class CreateTeampointadjusts < ActiveRecord::Migration +class CreateTeampointadjusts < ActiveRecord::Migration[4.2] def change create_table :teampointadjusts do |t| t.integer :points diff --git a/db/migrate/20151117152454_add_score_back_to_school.rb b/db/migrate/20151117152454_add_score_back_to_school.rb index 7f8310b..9ecc9e9 100644 --- a/db/migrate/20151117152454_add_score_back_to_school.rb +++ b/db/migrate/20151117152454_add_score_back_to_school.rb @@ -1,4 +1,4 @@ -class AddScoreBackToSchool < ActiveRecord::Migration +class AddScoreBackToSchool < ActiveRecord::Migration[4.2] def change add_column :schools, :score, :decimal end diff --git a/db/migrate/20151216154211_rename_stats.rb b/db/migrate/20151216154211_rename_stats.rb index 3cc1fe7..7e0ed64 100644 --- a/db/migrate/20151216154211_rename_stats.rb +++ b/db/migrate/20151216154211_rename_stats.rb @@ -1,4 +1,4 @@ -class RenameStats < ActiveRecord::Migration +class RenameStats < ActiveRecord::Migration[4.2] def change rename_column :matches, :g_stat, :w1_stat rename_column :matches, :r_stat, :w2_stat diff --git a/db/migrate/20151229220036_create_delayed_jobs.rb b/db/migrate/20151229220036_create_delayed_jobs.rb index 27fdcf6..f90bc1b 100644 --- a/db/migrate/20151229220036_create_delayed_jobs.rb +++ b/db/migrate/20151229220036_create_delayed_jobs.rb @@ -1,4 +1,4 @@ -class CreateDelayedJobs < ActiveRecord::Migration +class CreateDelayedJobs < ActiveRecord::Migration[4.2] def self.up create_table :delayed_jobs, force: true do |table| table.integer :priority, default: 0, null: false # Allows some jobs to jump to the front of the queue diff --git a/db/migrate/20151230163202_generating_matches.rb b/db/migrate/20151230163202_generating_matches.rb index c27f573..c719a9a 100644 --- a/db/migrate/20151230163202_generating_matches.rb +++ b/db/migrate/20151230163202_generating_matches.rb @@ -1,4 +1,4 @@ -class GeneratingMatches < ActiveRecord::Migration +class GeneratingMatches < ActiveRecord::Migration[4.2] def change add_column :tournaments, :curently_generating_matches, :integer end diff --git a/db/migrate/20151230164000_tournament_date.rb b/db/migrate/20151230164000_tournament_date.rb index 4824a3d..857feeb 100644 --- a/db/migrate/20151230164000_tournament_date.rb +++ b/db/migrate/20151230164000_tournament_date.rb @@ -1,4 +1,4 @@ -class TournamentDate < ActiveRecord::Migration +class TournamentDate < ActiveRecord::Migration[4.2] def change add_column :tournaments, :date, :date end diff --git a/db/migrate/20160106025920_create_tournament_delegates.rb b/db/migrate/20160106025920_create_tournament_delegates.rb index 8e82b12..81e9e2a 100644 --- a/db/migrate/20160106025920_create_tournament_delegates.rb +++ b/db/migrate/20160106025920_create_tournament_delegates.rb @@ -1,4 +1,4 @@ -class CreateTournamentDelegates < ActiveRecord::Migration +class CreateTournamentDelegates < ActiveRecord::Migration[4.2] def change create_table :tournament_delegates do |t| t.integer :user_id diff --git a/db/migrate/20160106031418_create_school_delegates.rb b/db/migrate/20160106031418_create_school_delegates.rb index ee15009..b77eb9a 100644 --- a/db/migrate/20160106031418_create_school_delegates.rb +++ b/db/migrate/20160106031418_create_school_delegates.rb @@ -1,4 +1,4 @@ -class CreateSchoolDelegates < ActiveRecord::Migration +class CreateSchoolDelegates < ActiveRecord::Migration[4.2] def change create_table :school_delegates do |t| t.integer :user_id diff --git a/db/migrate/20160112152946_add_school_id_to_teampointsadjust.rb b/db/migrate/20160112152946_add_school_id_to_teampointsadjust.rb index 5102f27..dbe7ba9 100644 --- a/db/migrate/20160112152946_add_school_id_to_teampointsadjust.rb +++ b/db/migrate/20160112152946_add_school_id_to_teampointsadjust.rb @@ -1,4 +1,4 @@ -class AddSchoolIdToTeampointsadjust < ActiveRecord::Migration +class AddSchoolIdToTeampointsadjust < ActiveRecord::Migration[4.2] def change add_column :teampointadjusts, :school_id, :integer end diff --git a/db/migrate/20170301174920_add_pool_column.rb b/db/migrate/20170301174920_add_pool_column.rb index 6acb531..da37b5d 100644 --- a/db/migrate/20170301174920_add_pool_column.rb +++ b/db/migrate/20170301174920_add_pool_column.rb @@ -1,4 +1,4 @@ -class AddPoolColumn < ActiveRecord::Migration +class AddPoolColumn < ActiveRecord::Migration[4.2] def change add_column :wrestlers, :pool, :integer end diff --git a/db/schema.rb b/db/schema.rb index 06009f2..a39427c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,4 +1,3 @@ -# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. @@ -14,149 +13,140 @@ ActiveRecord::Schema.define(version: 20170301174920) do create_table "delayed_jobs", force: :cascade do |t| - t.integer "priority", default: 0, null: false - t.integer "attempts", default: 0, null: false - t.text "handler", null: false - t.text "last_error" + t.integer "priority", default: 0, null: false + t.integer "attempts", default: 0, null: false + t.text "handler", null: false + t.text "last_error" t.datetime "run_at" t.datetime "locked_at" t.datetime "failed_at" - t.string "locked_by" - t.string "queue" + t.string "locked_by" + t.string "queue" t.datetime "created_at" t.datetime "updated_at" + t.index ["priority", "run_at"], name: "delayed_jobs_priority" end - add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority" - create_table "matches", force: :cascade do |t| - t.integer "w1" - t.integer "w2" - t.text "w1_stat" - t.text "w2_stat" - t.integer "winner_id" - t.string "win_type" - t.string "score" + t.integer "w1" + t.integer "w2" + t.text "w1_stat" + t.text "w2_stat" + t.integer "winner_id" + t.string "win_type" + t.string "score" t.datetime "created_at" t.datetime "updated_at" - t.integer "tournament_id" - t.integer "round" - t.integer "finished" - t.integer "bout_number" - t.integer "weight_id" - t.string "bracket_position" - t.integer "bracket_position_number" - t.string "loser1_name" - t.string "loser2_name" - t.integer "mat_id" + t.integer "tournament_id" + t.integer "round" + t.integer "finished" + t.integer "bout_number" + t.integer "weight_id" + t.string "bracket_position" + t.integer "bracket_position_number" + t.string "loser1_name" + t.string "loser2_name" + t.integer "mat_id" + t.index ["mat_id"], name: "index_matches_on_mat_id" + t.index ["tournament_id"], name: "index_matches_on_tournament_id" + t.index ["w1", "w2"], name: "index_matches_on_w1_and_w2" end - add_index "matches", ["mat_id"], name: "index_matches_on_mat_id" - add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id" - add_index "matches", ["w1", "w2"], name: "index_matches_on_w1_and_w2" - create_table "mats", force: :cascade do |t| - t.string "name" - t.integer "tournament_id" + t.string "name" + t.integer "tournament_id" t.datetime "created_at" t.datetime "updated_at" + t.index ["tournament_id"], name: "index_mats_on_tournament_id" end - add_index "mats", ["tournament_id"], name: "index_mats_on_tournament_id" - create_table "school_delegates", force: :cascade do |t| - t.integer "user_id" - t.integer "school_id" + t.integer "user_id" + t.integer "school_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "schools", force: :cascade do |t| - t.string "name" + t.string "name" t.datetime "created_at" t.datetime "updated_at" - t.integer "tournament_id" - t.decimal "score" + t.integer "tournament_id" + t.decimal "score" + t.index ["tournament_id"], name: "index_schools_on_tournament_id" end - add_index "schools", ["tournament_id"], name: "index_schools_on_tournament_id" - create_table "teampointadjusts", force: :cascade do |t| - t.integer "points" - t.integer "wrestler_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "school_id" + t.integer "points" + t.integer "wrestler_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.integer "school_id" + t.index ["wrestler_id"], name: "index_teampointadjusts_on_wrestler_id" end - add_index "teampointadjusts", ["wrestler_id"], name: "index_teampointadjusts_on_wrestler_id" - create_table "tournament_delegates", force: :cascade do |t| - t.integer "user_id" - t.integer "tournament_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.integer "user_id" + t.integer "tournament_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end create_table "tournaments", force: :cascade do |t| - t.string "name" - t.string "address" - t.string "director" - t.string "director_email" + t.string "name" + t.string "address" + t.string "director" + t.string "director_email" t.datetime "created_at" t.datetime "updated_at" - t.text "tournament_type" - t.text "weigh_in_ref" - t.integer "user_id" - t.integer "curently_generating_matches" - t.date "date" + t.text "tournament_type" + t.text "weigh_in_ref" + t.integer "user_id" + t.integer "curently_generating_matches" + t.date "date" + t.index ["user_id"], name: "index_tournaments_on_user_id" end - add_index "tournaments", ["user_id"], name: "index_tournaments_on_user_id" - create_table "users", force: :cascade do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false - t.string "reset_password_token" + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" - t.integer "sign_in_count", default: 0, null: false + t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" - t.string "current_sign_in_ip" - t.string "last_sign_in_ip" + t.string "current_sign_in_ip" + t.string "last_sign_in_ip" t.datetime "created_at" t.datetime "updated_at" + t.index ["email"], name: "index_users_on_email", unique: true + t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true end - add_index "users", ["email"], name: "index_users_on_email", unique: true - add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true - create_table "weights", force: :cascade do |t| - t.integer "max" + t.integer "max" t.datetime "created_at" t.datetime "updated_at" - t.integer "tournament_id" + t.integer "tournament_id" + t.index ["tournament_id"], name: "index_weights_on_tournament_id" end - add_index "weights", ["tournament_id"], name: "index_weights_on_tournament_id" - create_table "wrestlers", force: :cascade do |t| - t.string "name" - t.integer "school_id" - t.integer "weight_id" - t.integer "seed" - t.integer "original_seed" + t.string "name" + t.integer "school_id" + t.integer "weight_id" + t.integer "seed" + t.integer "original_seed" t.datetime "created_at" t.datetime "updated_at" - t.integer "season_win" - t.integer "season_loss" - t.string "criteria" - t.boolean "extra" - t.decimal "offical_weight" - t.integer "pool" + t.integer "season_win" + t.integer "season_loss" + t.string "criteria" + t.boolean "extra" + t.decimal "offical_weight" + t.integer "pool" + t.index ["weight_id"], name: "index_wrestlers_on_weight_id" end - add_index "wrestlers", ["weight_id"], name: "index_wrestlers_on_weight_id" - end