|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20151112072948) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20151113025751) do
|
|
|
|
|
|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
|
t.integer "act_id", :null => false
|
|
|
|
@ -572,6 +572,60 @@ ActiveRecord::Schema.define(:version => 20151112072948) do
|
|
|
|
|
add_index "enumerations", ["id", "type"], :name => "index_enumerations_on_id_and_type"
|
|
|
|
|
add_index "enumerations", ["project_id"], :name => "index_enumerations_on_project_id"
|
|
|
|
|
|
|
|
|
|
create_table "exercise_answers", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "exercise_question_id"
|
|
|
|
|
t.integer "exercise_choices_id"
|
|
|
|
|
t.text "answer_text"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "exercise_choices", :force => true do |t|
|
|
|
|
|
t.integer "exercise_question_id"
|
|
|
|
|
t.text "choice_text"
|
|
|
|
|
t.integer "choice_position"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "exercise_questions", :force => true do |t|
|
|
|
|
|
t.string "question_title"
|
|
|
|
|
t.integer "question_type"
|
|
|
|
|
t.integer "question_number"
|
|
|
|
|
t.integer "exercise_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "exercise_standard_answers", :force => true do |t|
|
|
|
|
|
t.integer "exercise_question_id"
|
|
|
|
|
t.integer "exercise_choices_id"
|
|
|
|
|
t.text "answer_text"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "exercise_users", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "exercise_id"
|
|
|
|
|
t.integer "score"
|
|
|
|
|
t.datetime "start_at"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "exercises", :force => true do |t|
|
|
|
|
|
t.string "exercise_name"
|
|
|
|
|
t.text "exercise_description"
|
|
|
|
|
t.integer "course_id"
|
|
|
|
|
t.integer "exercise_status"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "time"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "first_pages", :force => true do |t|
|
|
|
|
|
t.string "web_title"
|
|
|
|
|
t.string "title"
|
|
|
|
|