Fixed tests + Added new ones

This commit is contained in:
Shrey 2015-06-01 22:37:25 +05:30 committed by Matt Amos
parent d1d4f8192d
commit faf4c5aa7a
4 changed files with 75 additions and 35 deletions

View file

@ -17,7 +17,7 @@ class CreateIssues < ActiveRecord::Migration
add_foreign_key :issues, :users, :column => :reported_user_id,:name => "issues_reported_user_id_fkey"
add_index :issues, :reported_user_id,
add_index :issues, :reported_user_id
add_index :issues, [:reportable_id, :reportable_type]
end

View file

@ -1989,6 +1989,20 @@ CREATE INDEX index_issue_comments_on_issue_id ON issue_comments USING btree (iss
CREATE INDEX index_issue_comments_on_user_id ON issue_comments USING btree (user_id);
--
-- Name: index_issues_on_reportable_id_and_reportable_type; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_issues_on_reportable_id_and_reportable_type ON issues USING btree (reportable_id, reportable_type);
--
-- Name: index_issues_on_reported_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_issues_on_reported_user_id ON issues USING btree (reported_user_id);
--
-- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -
--
@ -2136,20 +2150,6 @@ CREATE INDEX relations_changeset_id_idx ON relations USING btree (changeset_id);
CREATE INDEX relations_timestamp_idx ON relations USING btree ("timestamp");
--
-- Name: reportable_object_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX reportable_object_idx ON issues USING btree (reportable_id, reportable_type);
--
-- Name: reported_user_id_idx; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX reported_user_id_idx ON issues USING btree (reported_user_id);
--
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
--