Skip to content
Snippets Groups Projects
Commit e58ce2b7 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Remove index on file_type

parent dd0e3412
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,8 +6,8 @@ class CreateJobArtifacts < ActiveRecord::Migration
def change
create_table :ci_job_artifacts do |t|
t.belongs_to :project, null: false, index: true, foreign_key: { on_delete: :cascade }
t.integer :job_id, null: false, index: true
t.integer :file_type, null: false, index: true
t.integer :job_id, null: false
t.integer :file_type, null: false
t.integer :size, limit: 8
 
t.datetime_with_timezone :created_at, null: false
Loading
Loading
Loading
Loading
@@ -330,9 +330,7 @@ ActiveRecord::Schema.define(version: 20171130145523) do
t.string "file"
end
 
add_index "ci_job_artifacts", ["file_type"], name: "index_ci_job_artifacts_on_file_type", using: :btree
add_index "ci_job_artifacts", ["job_id", "file_type"], name: "index_ci_job_artifacts_on_job_id_and_file_type", unique: true, using: :btree
add_index "ci_job_artifacts", ["job_id"], name: "index_ci_job_artifacts_on_job_id", using: :btree
add_index "ci_job_artifacts", ["project_id"], name: "index_ci_job_artifacts_on_project_id", using: :btree
 
create_table "ci_pipeline_schedule_variables", force: :cascade do |t|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment