Merge pull request #3006 from evazion/fix-ss-attributes

Saved searches: drop unused name and category columns.
This commit is contained in:
Albert Yi
2017-05-01 14:39:20 -07:00
committed by GitHub
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');