Add an index on created_at to the note_comments table
This commit is contained in:
parent
ea5183cd18
commit
0c8ed1938b
2 changed files with 17 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddCreatedAtIndexToNoteComments < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :note_comments, :created_at
|
||||
end
|
||||
end
|
|
@ -1797,6 +1797,13 @@ CREATE INDEX gpx_files_visible_visibility_idx ON gpx_files USING btree (visible,
|
|||
CREATE UNIQUE INDEX index_client_applications_on_key ON client_applications USING btree (key);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX index_note_comments_on_created_at ON note_comments USING btree (created_at);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
@ -2379,6 +2386,8 @@ ALTER TABLE ONLY ways
|
|||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
SET search_path TO "$user",public;
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('1');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('10');
|
||||
|
@ -2455,6 +2464,8 @@ INSERT INTO schema_migrations (version) VALUES ('20121203124841');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130328184137');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20131212124700');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('21');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('22');
|
||||
|
@ -2541,4 +2552,4 @@ INSERT INTO schema_migrations (version) VALUES ('7');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('8');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('9');
|
||||
INSERT INTO schema_migrations (version) VALUES ('9');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue