Skip to content

Commit

Permalink
revert erroneous changes in schema
Browse files Browse the repository at this point in the history
previously schema was comitted with some random changes and im not sure what the cause is.
All those changes are now manually reverted
  • Loading branch information
syoopie committed Aug 20, 2024
1 parent 3ff87f0 commit 6bf6f8d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
t.index ["answer_id"], name: "fk__course_assessment_answer_programming_files_answer_id"
end

create_table "course_assessment_answer_programming_test_results", id: :integer, default: -> { "nextval('course_assessment_answer_programming_auto_grading_test_r_id_seq'::regclass)" }, force: :cascade do |t|
create_table "course_assessment_answer_programming_test_results", id: :serial, force: :cascade do |t|
t.integer "auto_grading_id", null: false
t.integer "test_case_id"
t.boolean "passed", null: false
Expand Down Expand Up @@ -462,7 +462,7 @@
t.datetime "published_at", precision: nil
t.string "session_id", limit: 255
t.datetime "submitted_at", precision: nil
t.datetime "last_graded_time", precision: nil, default: "2021-11-09 00:08:09"
t.datetime "last_graded_time", precision: nil, default: "2021-10-24 14:11:56"
t.index ["assessment_id", "creator_id"], name: "unique_assessment_id_and_creator_id", unique: true
t.index ["assessment_id"], name: "fk__course_assessment_submissions_assessment_id"
t.index ["creator_id"], name: "fk__course_assessment_submissions_creator_id"
Expand Down Expand Up @@ -531,7 +531,7 @@
t.integer "minimum_level", null: false
end

create_table "course_condition_surveys", force: :cascade do |t|
create_table "course_condition_surveys", id: :serial, force: :cascade do |t|
t.bigint "survey_id", null: false
t.index ["survey_id"], name: "fk__course_condition_surveys_survey_id"
end
Expand Down Expand Up @@ -561,7 +561,7 @@

create_table "course_discussion_post_codaveri_feedbacks", force: :cascade do |t|
t.bigint "post_id", null: false
t.integer "status", default: 0
t.integer "status"
t.text "codaveri_feedback_id", null: false
t.text "original_feedback", null: false
t.integer "rating"
Expand Down Expand Up @@ -1248,7 +1248,7 @@
t.boolean "enrollable", default: false, null: false
t.string "time_zone", limit: 255
t.boolean "show_personalized_timeline_features", default: false, null: false
t.datetime "conditional_satisfiability_evaluation_time", precision: nil, default: "2021-11-09 00:08:09"
t.datetime "conditional_satisfiability_evaluation_time", precision: nil, default: "2021-10-24 10:31:32"
t.integer "default_timeline_algorithm", default: 0, null: false
t.index ["creator_id"], name: "fk__courses_creator_id"
t.index ["instance_id"], name: "fk__courses_instance_id"
Expand Down Expand Up @@ -1554,8 +1554,8 @@
add_foreign_key "course_assessments", "users", column: "updater_id", name: "fk_course_assessments_updater_id"
add_foreign_key "course_condition_achievements", "course_achievements", column: "achievement_id", name: "fk_course_condition_achievements_achievement_id"
add_foreign_key "course_condition_assessments", "course_assessments", column: "assessment_id", name: "fk_course_condition_assessments_assessment_id"
add_foreign_key "course_condition_surveys", "course_surveys", column: "survey_id"
add_foreign_key "course_condition_videos", "course_videos", column: "video_id"
add_foreign_key "course_condition_surveys", "course_surveys", column: "survey_id", name: "fk_course_condition_surveys_survey_id"
add_foreign_key "course_condition_videos", "course_videos", column: "video_id", name: "fk_course_condition_videos_video_id"
add_foreign_key "course_conditions", "courses", name: "fk_course_conditions_course_id"
add_foreign_key "course_conditions", "users", column: "creator_id", name: "fk_course_conditions_creator_id"
add_foreign_key "course_conditions", "users", column: "updater_id", name: "fk_course_conditions_updater_id"
Expand Down Expand Up @@ -1599,8 +1599,8 @@
add_foreign_key "course_groups", "course_group_categories", column: "group_category_id"
add_foreign_key "course_groups", "users", column: "creator_id", name: "fk_course_groups_creator_id"
add_foreign_key "course_groups", "users", column: "updater_id", name: "fk_course_groups_updater_id"
add_foreign_key "course_learning_maps", "courses"
add_foreign_key "course_learning_rate_records", "course_users"
add_foreign_key "course_learning_maps", "courses", name: "fk_course_learning_maps_course_id"
add_foreign_key "course_learning_rate_records", "course_users", name: "fk_course_learning_rate_records_course_user_id"
add_foreign_key "course_lesson_plan_event_materials", "course_lesson_plan_events", column: "lesson_plan_event_id", name: "fk_course_lesson_plan_event_materials_lesson_plan_event_id"
add_foreign_key "course_lesson_plan_event_materials", "course_materials", column: "material_id", name: "fk_course_lesson_plan_event_materials_material_id"
add_foreign_key "course_lesson_plan_items", "courses", name: "fk_course_lesson_plan_items_course_id"
Expand Down

0 comments on commit 6bf6f8d

Please sign in to comment.