DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for: class MigrationClass < ActiveRecord::Migration[4.2] (called from require at bin/rails:4)
17 lines
617 B
Ruby
17 lines
617 B
Ruby
class RemovePollWhiteNullTotalResults < ActiveRecord::Migration[4.2]
|
|
def change
|
|
remove_index :poll_null_results, column: [:booth_assignment_id]
|
|
remove_index :poll_null_results, column: [:officer_assignment_id]
|
|
|
|
remove_index :poll_white_results, column: [:booth_assignment_id]
|
|
remove_index :poll_white_results, column: [:officer_assignment_id]
|
|
|
|
remove_index :poll_total_results, column: [:booth_assignment_id]
|
|
remove_index :poll_total_results, column: [:officer_assignment_id]
|
|
|
|
drop_table :poll_null_results
|
|
drop_table :poll_total_results
|
|
drop_table :poll_white_results
|
|
end
|
|
end
|