Add index to exercises
This commit is contained in:
5
db/migrate/20171122124222_add_index_to_exercises.rb
Normal file
5
db/migrate/20171122124222_add_index_to_exercises.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AddIndexToExercises < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_index :exercises, :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: 20171115121125) do
|
ActiveRecord::Schema.define(version: 20171122124222) 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"
|
||||||
@ -139,6 +139,8 @@ ActiveRecord::Schema.define(version: 20171115121125) do
|
|||||||
t.integer "expected_difficulty", default: 1
|
t.integer "expected_difficulty", default: 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
add_index "exercises", ["id"], name: "index_exercises_on_id", using: :btree
|
||||||
|
|
||||||
create_table "exercises_proxy_exercises", id: false, force: :cascade do |t|
|
create_table "exercises_proxy_exercises", id: false, force: :cascade do |t|
|
||||||
t.integer "proxy_exercise_id"
|
t.integer "proxy_exercise_id"
|
||||||
t.integer "exercise_id"
|
t.integer "exercise_id"
|
||||||
|
Reference in New Issue
Block a user