Skip to content

Commit

Permalink
Database changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftwareDev committed Dec 21, 2014
1 parent 5dc5dbc commit 072b7a8
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@

create_table "annotation_categories", :force => true do |t|
t.text "annotation_category_name"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "assignment_id", :null => false
t.integer "position"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "assignment_id", :null => false
end

add_index "annotation_categories", ["assignment_id"], :name => "index_annotation_categories_on_assignment_id"

create_table "annotation_texts", :force => true do |t|
t.text "content"
t.integer "annotation_category_id"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "creator_id"
t.integer "last_editor_id"
end
Expand Down Expand Up @@ -55,8 +55,8 @@
create_table "assignment_files", :force => true do |t|
t.integer "assignment_id"
t.string "filename", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

add_index "assignment_files", ["assignment_id", "filename"], :name => "index_assignment_files_on_assignment_id_and_filename", :unique => true
Expand All @@ -74,8 +74,8 @@
t.datetime "due_date"
t.integer "group_min", :default => 1, :null => false
t.integer "group_max", :default => 1, :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "student_form_groups"
t.boolean "group_name_autogenerated"
t.boolean "group_name_displayed"
Expand Down Expand Up @@ -110,8 +110,8 @@
t.integer "ta_id"
t.integer "criterion_id"
t.string "criterion_type"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "assignment_id"
end

Expand All @@ -122,8 +122,8 @@
t.integer "result_id"
t.string "description"
t.float "extra_mark"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "unit"
end

Expand All @@ -135,8 +135,8 @@
t.integer "position"
t.integer "assignment_id", :null => false
t.decimal "max", :precision => 10, :scale => 1, :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "assigned_groups_count", :default => 0
end

Expand All @@ -146,8 +146,8 @@
create_table "grace_period_deductions", :force => true do |t|
t.integer "membership_id"
t.integer "deduction"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

add_index "grace_period_deductions", ["membership_id"], :name => "index_grace_period_deductions_on_membership_id"
Expand All @@ -157,8 +157,8 @@
t.string "description"
t.text "message"
t.date "date"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "show_total"
end

Expand All @@ -167,8 +167,8 @@
create_table "grade_entry_items", :force => true do |t|
t.integer "grade_entry_form_id"
t.string "name", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.float "out_of"
t.integer "position"
end
Expand All @@ -179,8 +179,8 @@
t.integer "user_id"
t.integer "grade_entry_form_id"
t.boolean "released_to_student"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.float "total_grade"
end

Expand All @@ -195,8 +195,8 @@
t.integer "grade_entry_item_id"
t.integer "grade_entry_student_id"
t.float "grade"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

add_index "grades", ["grade_entry_item_id", "grade_entry_student_id"], :name => "index_grades_on_grade_entry_item_id_and_grade_entry_student_id", :unique => true
Expand All @@ -209,8 +209,8 @@
create_table "groupings", :force => true do |t|
t.integer "group_id", :null => false
t.integer "assignment_id", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "admin_approved", :default => false, :null => false
t.integer "grouping_queue_id"
t.boolean "is_collected", :default => false
Expand All @@ -232,8 +232,8 @@
t.integer "result_id"
t.integer "markable_id"
t.float "mark"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "markable_type"
end

Expand All @@ -243,8 +243,8 @@
create_table "memberships", :force => true do |t|
t.integer "user_id"
t.string "membership_status"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "grouping_id", :null => false
t.string "type"
end
Expand All @@ -254,8 +254,8 @@
create_table "notes", :force => true do |t|
t.text "notes_message", :null => false
t.integer "creator_id", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "noteable_id", :null => false
t.string "noteable_type", :null => false
end
Expand All @@ -265,8 +265,8 @@
create_table "periods", :force => true do |t|
t.integer "submission_rule_id"
t.float "deduction"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.float "hours"
t.integer "interval"
t.string "submission_rule_type"
Expand All @@ -278,17 +278,17 @@
t.integer "submission_id"
t.string "marking_state"
t.text "overall_comment"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "released_to_students", :default => false, :null => false
t.float "total_mark", :default => 0.0
end

create_table "rubric_criteria", :force => true do |t|
t.string "rubric_criterion_name", :null => false
t.integer "assignment_id", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "position"
t.text "level_0_name"
t.text "level_0_description"
Expand All @@ -314,15 +314,15 @@

create_table "sections", :force => true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

create_table "sessions", :force => true do |t|
t.string "session_id", :null => false
t.text "data"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
Expand All @@ -348,8 +348,8 @@
create_table "submission_rules", :force => true do |t|
t.integer "assignment_id", :null => false
t.string "type", :default => "NullSubmissionRule"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

add_index "submission_rules", ["assignment_id"], :name => "index_submission_rules_on_assignment_id"
Expand Down Expand Up @@ -383,8 +383,8 @@
t.string "filename"
t.text "file_content"
t.integer "submission_id"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "status"
t.integer "user_id"
end
Expand All @@ -404,8 +404,8 @@
t.string "first_name"
t.integer "grace_credits", :default => 0, :null => false
t.string "type"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "hidden", :default => false, :null => false
t.string "api_key"
t.integer "section_id"
Expand Down

0 comments on commit 072b7a8

Please sign in to comment.