adds booth backend for index, show, create and edit actions

This commit is contained in:
rgarcia
2016-09-28 11:56:19 +02:00
parent 7db3683c27
commit 2c3127b6bd
18 changed files with 288 additions and 85 deletions

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160914172535) do
ActiveRecord::Schema.define(version: 20160926090107) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -273,6 +273,11 @@ ActiveRecord::Schema.define(version: 20160914172535) do
create_table "poll_booths", force: :cascade do |t|
t.string "name"
t.integer "poll_id"
t.string "location"
end
create_table "poll_officers", force: :cascade do |t|
t.integer "user_id"
end
create_table "poll_voters", force: :cascade do |t|
@@ -281,10 +286,6 @@ ActiveRecord::Schema.define(version: 20160914172535) do
t.string "document_type"
end
create_table "poll_officers", force: :cascade do |t|
t.integer "user_id"
end
create_table "polls", force: :cascade do |t|
t.string "name"
end