Guest User

Untitled

a guest
May 27th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. # This file is auto-generated from the current state of the database. Instead of editing this file,
  2. # please use the migrations feature of Active Record to incrementally modify your database, and
  3. # then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your database schema. If you need
  6. # to create the application database on another system, you should be using db:schema:load, not running
  7. # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
  8. # you'll amass, the slower it'll run and the greater likelihood for issues).
  9. #
  10. # It's strongly recommended to check this file into your version control system.
  11.  
  12. ActiveRecord::Schema.define(:version => 20081127034436) do
  13.  
  14. create_table "accesos", :force => true do |t|
  15. t.string "rut_evaluado"
  16. t.string "rut_evaluador"
  17. t.datetime "created_at"
  18. t.datetime "updated_at"
  19. end
  20.  
  21. create_table "cargos", :force => true do |t|
  22. t.string "nombre"
  23. t.text "descripcion"
  24. t.integer "perfil", :limit => 11
  25. t.datetime "created_at"
  26. t.datetime "updated_at"
  27. end
  28.  
  29. create_table "cuestionario_cargos", :force => true do |t|
  30. t.integer "codigo_cargo", :limit => 11
  31. t.integer "cuestionario_id", :limit => 11
  32. t.datetime "created_at"
  33. t.datetime "updated_at"
  34. end
  35.  
  36. create_table "cuestionarios", :force => true do |t|
  37. t.string "nombre"
  38. t.text "descripcion"
  39. t.integer "puntaje_minimo", :limit => 11
  40. t.datetime "created_at"
  41. t.datetime "updated_at"
  42. end
  43.  
  44. create_table "perfiles", :force => true do |t|
  45. t.text "descripcion_perfil"
  46. t.datetime "created_at"
  47. t.datetime "updated_at"
  48. end
  49.  
  50. create_table "personas", :force => true do |t|
  51. t.string "rut"
  52. t.string "dv"
  53. t.integer "codigo_cargo", :limit => 11
  54. t.string "nombre"
  55. t.string "apellido_paterno"
  56. t.string "apellido_materno"
  57. t.string "email"
  58. t.string "telefono_1"
  59. t.string "telefono_2"
  60. t.string "anexo"
  61. t.string "direccion"
  62. t.string "contrasena"
  63. t.datetime "created_at"
  64. t.datetime "updated_at"
  65. end
  66.  
  67. create_table "preguntas", :force => true do |t|
  68. t.integer "cuetionario_id", :limit => 11
  69. t.integer "numero", :limit => 11
  70. t.string "enunciado"
  71. t.string "alternativa_1"
  72. t.string "alternativa_2"
  73. t.string "alternativa_3"
  74. t.string "alternativa_4"
  75. t.string "alternativa_5"
  76. t.integer "calificacion_1", :limit => 11
  77. t.integer "calificacion_2", :limit => 11
  78. t.integer "calificacion_3", :limit => 11
  79. t.integer "calificacion_4", :limit => 11
  80. t.integer "calificacion_5", :limit => 11
  81. t.datetime "created_at"
  82. t.datetime "updated_at"
  83. end
  84.  
  85. create_table "respuestas", :force => true do |t|
  86. t.string "rut_evaluado"
  87. t.string "rut_evaluador"
  88. t.integer "cuestionario_id", :limit => 11
  89. t.integer "numero", :limit => 11
  90. t.string "numero_alternativa"
  91. t.string "descripcion_alternativa"
  92. t.integer "calificacion", :limit => 11
  93. t.date "fecha"
  94. t.datetime "created_at"
  95. t.datetime "updated_at"
  96. end
  97.  
  98. end
Add Comment
Please, Sign In to add comment