assigns officers to booths
This commit is contained in:
9
db/migrate/20160928113143_create_officing_booths.rb
Normal file
9
db/migrate/20160928113143_create_officing_booths.rb
Normal 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
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user