Changeset ad6b806 in RedSur


Ignore:
Timestamp:
May 25, 2016, 10:53:40 AM (8 years ago)
Author:
aosorio <aosorio@…>
Branches:
modelo_minuta
Children:
220994c
Parents:
11a277a
Message:

Reiniciado el esquema de la DB y arreglados varios detalles pendientes

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • app/models/poll.rb

    r11a277a rad6b806  
    66  has_many :poll_answers, -> { order 'id ASC' }
    77  has_many :poll_participations
    8   has_many :poll_text_areas
    98  has_many :poll_responsables
    109  has_many :poll_asistentes
     
    3433      :question => self.question,
    3534      :poll_answers => self.poll_answers,
    36       :poll_text_areas => self.poll_text_areas,
    3735      :poll_responsables => self.poll_responsables,
    3836      :poll_asistentes => self.poll_asistentes,
  • db/migrate/20160519180221_add_poll_acuerdo_to_poll.rb

    • Property mode changed from 100644 to 100755
  • db/migrate/20160519180240_add_poll_to_poll_acuerdo.rb

    • Property mode changed from 100644 to 100755
  • db/schema.rb

    r11a277a rad6b806  
    371371  add_index "poll_asuntos", ["poll_id"], name: "index_poll_asuntos_on_poll_id", using: :btree
    372372
    373   create_table "poll_fechayhoras", force: :cascade do |t|
    374     t.datetime "fechayhora"
    375     t.datetime "created_at", null: false
    376     t.datetime "updated_at", null: false
    377   end
    378 
    379373  create_table "poll_participations", force: :cascade do |t|
    380374    t.integer  "poll_answer_id",          null: false
     
    407401
    408402  add_index "poll_responsables", ["poll_id"], name: "index_poll_responsables_on_poll_id", using: :btree
    409 
    410   create_table "poll_seleccions", force: :cascade do |t|
    411     t.boolean  "seleccion"
    412     t.datetime "created_at", null: false
    413     t.datetime "updated_at", null: false
    414     t.integer  "poll_id"
    415   end
    416 
    417   add_index "poll_seleccions", ["poll_id"], name: "index_poll_seleccions_on_poll_id", using: :btree
    418 
    419   create_table "poll_text_area_largas", force: :cascade do |t|
    420     t.text     "text"
    421     t.datetime "created_at", null: false
    422     t.datetime "updated_at", null: false
    423     t.integer  "poll_id"
    424   end
    425 
    426   add_index "poll_text_area_largas", ["poll_id"], name: "index_poll_text_area_largas_on_poll_id", using: :btree
    427 
    428   create_table "poll_text_areas", force: :cascade do |t|
    429     t.text     "text"
    430     t.datetime "created_at", null: false
    431     t.datetime "updated_at", null: false
    432     t.integer  "poll_id"
    433   end
    434 
    435   add_index "poll_text_areas", ["poll_id"], name: "index_poll_text_areas_on_poll_id", using: :btree
    436 
    437   create_table "poll_text_fields", force: :cascade do |t|
    438     t.text     "text"
    439     t.datetime "created_at", null: false
    440     t.datetime "updated_at", null: false
    441     t.integer  "poll_id"
    442   end
    443 
    444   add_index "poll_text_fields", ["poll_id"], name: "index_poll_text_fields_on_poll_id", using: :btree
    445403
    446404  create_table "polls", force: :cascade do |t|
     
    712670  add_foreign_key "poll_puntos", "polls"
    713671  add_foreign_key "poll_responsables", "polls"
    714   add_foreign_key "poll_seleccions", "polls"
    715   add_foreign_key "poll_text_area_largas", "polls"
    716   add_foreign_key "poll_text_areas", "polls"
    717   add_foreign_key "poll_text_fields", "polls"
    718672  add_foreign_key "polls", "polls"
    719673  add_foreign_key "posts", "people", column: "author_id", name: "posts_author_id_fk", on_delete: :cascade
Note: See TracChangeset for help on using the changeset viewer.