artists: add is_deleted and is_banned indexes.

This commit is contained in:
evazion
2020-03-06 20:18:06 -06:00
parent ddffffb413
commit f4da0a127d
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
class AddIsDeletedIndexOnArtists < ActiveRecord::Migration[6.0]
def change
add_index :artists, :is_deleted
add_index :artists, :is_banned
end
end

View File

@@ -4664,6 +4664,20 @@ CREATE INDEX index_artists_on_group_name ON public.artists USING btree (group_na
CREATE INDEX index_artists_on_group_name_trgm ON public.artists USING gin (group_name public.gin_trgm_ops);
--
-- Name: index_artists_on_is_banned; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_artists_on_is_banned ON public.artists USING btree (is_banned);
--
-- Name: index_artists_on_is_deleted; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_artists_on_is_deleted ON public.artists USING btree (is_deleted);
--
-- Name: index_artists_on_name; Type: INDEX; Schema: public; Owner: -
--
@@ -7308,6 +7322,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200217044719'),
('20200223042415'),
('20200223234015'),
('20200306202253');
('20200306202253'),
('20200307021204');