Create model for organizers
This commit is contained in:
parent
c8bfea4898
commit
abc26f733f
3 changed files with 44 additions and 2 deletions
|
|
@ -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_22_172051) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2025_03_28_010547) do
|
||||
create_table "candidates", force: :cascade do |t|
|
||||
t.integer "vote_id"
|
||||
t.string "name"
|
||||
|
|
@ -20,6 +20,13 @@ ActiveRecord::Schema[7.2].define(version: 2025_03_22_172051) do
|
|||
t.index ["vote_id"], name: "index_candidates_on_vote_id"
|
||||
end
|
||||
|
||||
create_table "organizers", force: :cascade do |t|
|
||||
t.integer "vote_id"
|
||||
t.integer "user_id"
|
||||
t.index ["user_id"], name: "index_organizers_on_user_id"
|
||||
t.index ["vote_id"], name: "index_organizers_on_vote_id"
|
||||
end
|
||||
|
||||
create_table "ratings", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "candidate_id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue