adds date and officer log to recounts

This commit is contained in:
Juanjo Bazán
2017-01-03 21:30:03 +01:00
parent b3fd7ffafa
commit 0c1d7c15c1
2 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
class AddDateAndOfficerAssignmentLogToPollRecounts < ActiveRecord::Migration
def change
add_column :poll_recounts, :date, :datetime
add_column :poll_recounts, :officer_assignment_id_log, :text, default: ""
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170102170125) do
ActiveRecord::Schema.define(version: 20170103191711) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -340,9 +340,11 @@ ActiveRecord::Schema.define(version: 20170102170125) do
t.integer "booth_assignment_id"
t.integer "officer_assignment_id"
t.integer "count"
t.text "count_log", default: ""
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.text "count_log", default: ""
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "date"
t.text "officer_assignment_id_log", default: ""
end
add_index "poll_recounts", ["booth_assignment_id"], name: "index_poll_recounts_on_booth_assignment_id", using: :btree