Create model for candidates with name and description

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent f7f1807839
commit d6500e013d
6 changed files with 64 additions and 5 deletions

View file

@ -10,7 +10,16 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2025_03_21_213011) do
ActiveRecord::Schema[7.2].define(version: 2025_03_21_224552) do
create_table "candidates", force: :cascade do |t|
t.integer "vote_id"
t.string "name"
t.text "description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["vote_id"], name: "index_candidates_on_vote_id"
end
create_table "votes", force: :cascade do |t|
t.string "secure_id"
t.string "title"