Project

gindex

0.02
Low commit activity in last 3 years
A long-lived project that still receives updates
Instant concurrent indexes for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Runtime

>= 6.1
 Project Readme

g index

šŸš¤ Instant concurrent index migrations for Rails

Build Status

Installation

Add this line to your applicationā€™s Gemfile:

gem "gindex", group: :development

How It Works

rails g index users email

generates:

class AddIndexOnEmailToUsers < ActiveRecord::Migration[7.0]
  disable_ddl_transaction!

  def change
    add_index :users, :email, algorithm: :concurrently
  end
end

Also works with multi-column indexes

rails g index deliveries store_id delivered_at

TODO

  • add :name option to long index names

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

To get started with development:

git clone https://github.com/ankane/gindex.git
cd gindex
bundle install