saved searches: drop unused name and category columns.

This commit is contained in:
evazion 2017-04-28 17:21:33 -05:00
parent 641f56dc2a
commit b48671f59f
2 changed files with 10 additions and 7 deletions

View File

@ -0,0 +1,8 @@
class RemoveNameAndCategoryFromSavedSearches < ActiveRecord::Migration
def change
SavedSearch.without_timeout do
remove_column :saved_searches, :name, :text
remove_column :saved_searches, :category, :text
end
end
end

View File

@ -6885,13 +6885,6 @@ CREATE INDEX index_posts_on_tags_index ON posts USING gin (tag_index);
CREATE INDEX index_posts_on_uploader_id ON posts USING btree (uploader_id);
--
-- Name: index_saved_searches_on_category; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_saved_searches_on_category ON saved_searches USING btree (category);
--
-- Name: index_saved_searches_on_labels; Type: INDEX; Schema: public; Owner: -
--
@ -7476,3 +7469,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170414233617');
INSERT INTO schema_migrations (version) VALUES ('20170416224142');
INSERT INTO schema_migrations (version) VALUES ('20170428220448');