artists: add is_deleted and is_banned indexes.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddIsDeletedIndexOnArtists < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_index :artists, :is_deleted
|
||||
add_index :artists, :is_banned
|
||||
end
|
||||
end
|
||||
@@ -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');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user