Module: SafePgMigrations::Helpers::IndexHelper

Included in:
IdempotentStatements
Defined in:
lib/safe-pg-migrations/helpers/index_helper.rb

Instance Method Summary collapse

Instance Method Details

#index_definition(table_name, column_name, **options) ⇒ Object



6
7
8
9
# File 'lib/safe-pg-migrations/helpers/index_helper.rb', line 6

def index_definition(table_name, column_name, **options)
  index_definition, = add_index_options(table_name, column_name, **options)
  index_definition
end