diff --git a/db/migrate/20180118192721_create_glitch_notes.rb b/db/migrate/20180118192721_create_glitch_notes.rb index 12988901bb..ef98d5aeed 100644 --- a/db/migrate/20180118192721_create_glitch_notes.rb +++ b/db/migrate/20180118192721_create_glitch_notes.rb @@ -4,7 +4,7 @@ class CreateGlitchNotes < ActiveRecord::Migration[5.1] t.bigint :target_id, null: false t.string :target_type, null: false t.text :note, null: false - t.index [:target_id, :target_type] + t.index [:target_type, :target_id] t.timestamps end end diff --git a/db/schema.rb b/db/schema.rb index e4f8432910..7f4534c0c5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -188,7 +188,7 @@ ActiveRecord::Schema.define(version: 20180118192721) do t.text "note", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.index ["target_id", "target_type"], name: "index_glitch_notes_on_target_id_and_target_type" + t.index ["target_type", "target_id"], name: "index_glitch_notes_on_target_type_and_target_id" end create_table "imports", force: :cascade do |t|