Sha256: e87eab0e2d506571854b77741bd3ab9519ba6f2df6dc1ee38905fed10a2edda6

Contents?: true

Size: 217 Bytes

Versions: 2

Compression:

Stored size: 217 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  disable_ddl_transaction!

  def change
    add_index <%= table.to_sym.inspect %>, <%= columns.map(&:to_sym).inspect %>, algorithm: :concurrently
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gindex-0.1.1 lib/generators/index/templates/index_migration.rb
gindex-0.1.0 lib/generators/templates/index_migration.rb