为student_work_tests增加索引

cxt_course
cxt 9 years ago
parent e6ddb3cec0
commit bec09a7f1c

@ -0,0 +1,5 @@
class AddIndexToStudentWorkTests < ActiveRecord::Migration
def change
add_index :student_work_tests, :student_work_id
end
end

@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20160830090214) do ActiveRecord::Schema.define(:version => 20160907055119) do
create_table "activities", :force => true do |t| create_table "activities", :force => true do |t|
t.integer "act_id", :null => false t.integer "act_id", :null => false
@ -1829,6 +1829,8 @@ ActiveRecord::Schema.define(:version => 20160830090214) do
t.text "src" t.text "src"
end end
add_index "student_work_tests", ["student_work_id"], :name => "index_student_work_tests_on_student_work_id"
create_table "student_works", :force => true do |t| create_table "student_works", :force => true do |t|
t.string "name" t.string "name"
t.text "description", :limit => 2147483647 t.text "description", :limit => 2147483647

Loading…
Cancel
Save