Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
129 lines (107 sloc) 4.88 KB
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20120926183803) do
create_table "admins", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", :default => 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "admins", ["email"], :name => "index_admins_on_email", :unique => true
add_index "admins", ["reset_password_token"], :name => "index_admins_on_reset_password_token", :unique => true
create_table "afterschool_classes", :force => true do |t|
t.integer "grade_level_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "semester_id"
end
add_index "afterschool_classes", ["grade_level_id"], :name => "index_afterschool_classes_on_grade_level_id"
create_table "assignments", :force => true do |t|
t.string "description"
t.date "due_date"
t.decimal "completion_percentage"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "subject_id"
t.integer "grade_level_id"
end
add_index "assignments", ["grade_level_id"], :name => "index_assignments_on_grade_level_id"
add_index "assignments", ["subject_id"], :name => "index_assignments_on_subject_id"
create_table "attendances", :force => true do |t|
t.integer "session_id"
t.integer "student_id"
t.string "status"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "attendances", ["session_id"], :name => "index_attendances_on_session_id"
add_index "attendances", ["student_id"], :name => "index_attendances_on_student_id"
create_table "grade_levels", :force => true do |t|
t.string "year"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "semesters", :force => true do |t|
t.string "semster_period"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "sessions", :force => true do |t|
t.integer "afterschool_class_id"
t.date "date"
t.datetime "start_time"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "sessions", ["afterschool_class_id"], :name => "index_sessions_on_afterschool_class_id"
create_table "student_assignments", :force => true do |t|
t.datetime "completion_time"
t.integer "student_id"
t.integer "assignment_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "status"
end
add_index "student_assignments", ["assignment_id"], :name => "index_student_assignments_on_assignment_id"
add_index "student_assignments", ["student_id"], :name => "index_student_assignments_on_student_id"
create_table "students", :force => true do |t|
t.string "first_name"
t.string "last_name"
t.integer "afterschool_class_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "students", ["afterschool_class_id"], :name => "index_students_on_afterschool_class_id"
create_table "subjects", :force => true do |t|
t.string "name"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "teachers", :force => true do |t|
t.string "first_name"
t.string "last_name"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "afterschool_class_id"
t.string "salutation"
end
add_index "teachers", ["afterschool_class_id"], :name => "index_teachers_on_afterschool_class_id"
end