From d7622f0665f63b2f07da0a6e6063e00ff66f78a4 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 9 Jun 2016 16:50:09 -0400 Subject: [PATCH] remove unused broken tag_count column --- app/models/tag_group_membership.rb | 2 +- .../20160609203508_remove_tag_count_from_tag_groups.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160609203508_remove_tag_count_from_tag_groups.rb diff --git a/app/models/tag_group_membership.rb b/app/models/tag_group_membership.rb index eaa9c5178d8..eecc2966ab3 100644 --- a/app/models/tag_group_membership.rb +++ b/app/models/tag_group_membership.rb @@ -1,4 +1,4 @@ class TagGroupMembership < ActiveRecord::Base belongs_to :tag - belongs_to :tag_group, counter_cache: "tag_count" # TODO: remove counter cache + belongs_to :tag_group end diff --git a/db/migrate/20160609203508_remove_tag_count_from_tag_groups.rb b/db/migrate/20160609203508_remove_tag_count_from_tag_groups.rb new file mode 100644 index 00000000000..e6e73949be8 --- /dev/null +++ b/db/migrate/20160609203508_remove_tag_count_from_tag_groups.rb @@ -0,0 +1,5 @@ +class RemoveTagCountFromTagGroups < ActiveRecord::Migration + def change + remove_column :tag_groups, :tag_count + end +end