Add state for votes

This commit is contained in:
ricola 2025-04-06 17:04:31 -06:00
parent abc26f733f
commit aefc722c9d
5 changed files with 177 additions and 49 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2025_03_28_010547) do
ActiveRecord::Schema[7.2].define(version: 2025_03_28_014902) do
create_table "candidates", force: :cascade do |t|
t.integer "vote_id"
t.string "name"
@ -53,6 +53,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_03_28_010547) do
t.datetime "expire_on"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "state"
end
add_foreign_key "ratings", "votes"