Files
nairobi/db/migrate/20170130101121_create_poll_final_recount.rb
Javi Martín 91a3184281 Simplify creating timestamps in migrations
We were using the `timestamps` method most of the time, but sometimes we
were creating the columns manually.

Note editing past migrations if fine as long as the SQL they generate
remains identical, which is the case here.
2019-10-24 21:20:16 +02:00

15 lines
437 B
Ruby

class CreatePollFinalRecount < ActiveRecord::Migration[4.2]
def change
create_table :poll_final_recounts do |t|
t.integer :booth_assignment_id
t.integer :officer_assignment_id
t.integer :count
t.text :count_log, default: ""
t.timestamps null: false
t.text :officer_assignment_id_log, default: ""
end
add_index :poll_final_recounts, :booth_assignment_id
end
end