From 6d39bcb8685500f75af5fc3d892f68bf1015cc3b Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Sun, 26 Apr 2015 15:58:15 -0400 Subject: [PATCH] Remove matchups_array --- app/models/tournament.rb | 1 - db/migrate/20150426195714_drop_matchups_array.rb | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20150426195714_drop_matchups_array.rb diff --git a/app/models/tournament.rb b/app/models/tournament.rb index d7a8e1d..3b1ab44 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -5,7 +5,6 @@ class Tournament < ActiveRecord::Base has_many :mats, dependent: :destroy has_many :wrestlers, through: :weights - serialize :matchups_array def upcomingMatches if self.matches.nil? diff --git a/db/migrate/20150426195714_drop_matchups_array.rb b/db/migrate/20150426195714_drop_matchups_array.rb new file mode 100644 index 0000000..a229a68 --- /dev/null +++ b/db/migrate/20150426195714_drop_matchups_array.rb @@ -0,0 +1,5 @@ +class DropMatchupsArray < ActiveRecord::Migration + def change + remove_column :tournaments, :matchups_array + end +end