Commit aa32fd71 authored by Bianca Tarun's avatar Bianca Tarun

Added CandidatesControler, VotesController, Vote model and edited Candidate...

Added CandidatesControler, VotesController, Vote model and edited Candidate model, User model, Vote model
parent b4c2dc98
class VotesController < ApplicationController
end
\ No newline at end of file
......@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160717060106) do
ActiveRecord::Schema.define(version: 20160718023237) do
create_table "candidates", force: :cascade do |t|
t.string "first_name"
......@@ -47,4 +47,10 @@ ActiveRecord::Schema.define(version: 20160717060106) do
add_index "users", ["email"], name: "index_users_on_email", unique: true
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
create_table "votes", force: :cascade do |t|
t.text "comments"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment