Remove indices
This commit is contained in:
7
db/migrate/20180815115351_remove_event_indices.rb
Normal file
7
db/migrate/20180815115351_remove_event_indices.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class RemoveEventIndices < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
remove_index :events, [:user_type, :user_id]
|
||||||
|
remove_index :events, :exercise_id
|
||||||
|
remove_index :events, :file_id
|
||||||
|
end
|
||||||
|
end
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20180814154055) do
|
ActiveRecord::Schema.define(version: 20180815115351) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
@ -106,10 +106,6 @@ ActiveRecord::Schema.define(version: 20180814154055) do
|
|||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "events", ["exercise_id"], name: "index_events_on_exercise_id", using: :btree
|
|
||||||
add_index "events", ["file_id"], name: "index_events_on_file_id", using: :btree
|
|
||||||
add_index "events", ["user_type", "user_id"], name: "index_events_on_user_type_and_user_id", using: :btree
|
|
||||||
|
|
||||||
create_table "execution_environments", force: :cascade do |t|
|
create_table "execution_environments", force: :cascade do |t|
|
||||||
t.string "docker_image", limit: 255
|
t.string "docker_image", limit: 255
|
||||||
t.string "name", limit: 255
|
t.string "name", limit: 255
|
||||||
|
Reference in New Issue
Block a user