diff --git a/db/migrate/20170428220448_remove_name_and_category_from_saved_searches.rb b/db/migrate/20170428220448_remove_name_and_category_from_saved_searches.rb new file mode 100644 index 000000000..d2e7fd3d5 --- /dev/null +++ b/db/migrate/20170428220448_remove_name_and_category_from_saved_searches.rb @@ -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 diff --git a/db/structure.sql b/db/structure.sql index 776ee531f..65dd4ebe7 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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'); +