db/migrate/20200828083721_add_gin_index_to_topics_content.rb
# Otherwise, read and write opperations will be blocked until the migration finishes
Otherwise, read and write opperations will be blocked until the migration finishes
Otherwise read and write opperations will be blocked until the migration finishes
def change
    enable_extension "btree_gin"
    add_index :topics, :content, using: :gin, algorithm: :concurrently
  end
def change enable_extension "btree_gin" add_index :topics , :content , using : :gin , algorithm : :concurrently end
Otherwise, read and write opperations will be blocked until the migration finishes
Otherwise read and write opperations will be blocked until the migration finishes