saved searches: drop unused name and category columns.
This commit is contained in:
@@ -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
|
||||||
@@ -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);
|
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: -
|
-- 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 ('20170416224142');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20170428220448');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user