#
# Indexes
#
-# acls_k_idx (k)
+# acls_k_idx (k)
+# index_acls_on_address (address) USING gist
+# index_acls_on_domain (domain)
#
class Acl < ActiveRecord::Base
--- /dev/null
+class AddAclIndexes < ActiveRecord::Migration[5.2]
+ def change
+ add_index :acls, :domain
+ add_index :acls, :address, :using => :gist, :opclass => :inet_ops
+ end
+end
CREATE INDEX gpx_files_visible_visibility_idx ON public.gpx_files USING btree (visible, visibility);
+--
+-- Name: index_acls_on_address; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_acls_on_address ON public.acls USING gist (address inet_ops);
+
+
+--
+-- Name: index_acls_on_domain; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_acls_on_domain ON public.acls USING btree (domain);
+
+
--
-- Name: index_changeset_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
--
('20170222134109'),
('20180204153242'),
('20181031113522'),
+('20190518115041'),
('21'),
('22'),
('23'),