assigns officers to booths

This commit is contained in:
rgarcia
2016-09-28 18:39:01 +02:00
committed by kikito
parent de330b1c02
commit 5ba72f0fe3
10 changed files with 189 additions and 28 deletions

View File

@@ -0,0 +1,9 @@
class CreateOfficingBooths < ActiveRecord::Migration
def change
create_table :poll_officing_booths do |t|
t.belongs_to :officer
t.belongs_to :booth
t.timestamps null: false
end
end
end

View File

@@ -280,8 +280,11 @@ ActiveRecord::Schema.define(version: 20161102133838) do
t.integer "user_id"
end
create_table "poll_officers", force: :cascade do |t|
t.integer "user_id"
create_table "poll_officing_booths", force: :cascade do |t|
t.integer "officer_id"
t.integer "booth_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "poll_voters", force: :cascade do |t|