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.
15 lines
437 B
Ruby
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
|