gab-social/db/migrate/20210117210100_add_index_on_polls.rb

8 lines
173 B
Ruby
Raw Normal View History

class AddIndexOnPolls < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :polls, [:id, :lock_version], algorithm: :concurrently
end
end