Module: ParadeDB::MigrationDSL

Defined in:
lib/parade_db/migration_helpers.rb

Instance Method Summary collapse

Instance Method Details

#add_paradedb_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false) ⇒ Object



871
872
873
874
875
876
877
878
879
880
881
882
# File 'lib/parade_db/migration_helpers.rb', line 871

def add_paradedb_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false)
  connection.add_paradedb_index(
    table,
    fields: fields,
    key_field: key_field,
    name: name,
    index_options: index_options,
    where: where,
    if_not_exists: if_not_exists,
    concurrently: concurrently
  )
end

#create_paradedb_index(index_klass, if_not_exists: false, concurrently: false) ⇒ Object



863
864
865
# File 'lib/parade_db/migration_helpers.rb', line 863

def create_paradedb_index(index_klass, if_not_exists: false, concurrently: false)
  connection.create_paradedb_index(index_klass, if_not_exists: if_not_exists, concurrently: concurrently)
end

#reindex_paradedb_index(table, name: nil, concurrently: false) ⇒ Object



888
889
890
# File 'lib/parade_db/migration_helpers.rb', line 888

def reindex_paradedb_index(table, name: nil, concurrently: false)
  connection.reindex_paradedb_index(table, name: name, concurrently: concurrently)
end

#remove_paradedb_index(table, name: nil, if_exists: false) ⇒ Object



884
885
886
# File 'lib/parade_db/migration_helpers.rb', line 884

def remove_paradedb_index(table, name: nil, if_exists: false)
  connection.remove_paradedb_index(table, name: name, if_exists: if_exists)
end

#replace_paradedb_index(index_klass) ⇒ Object



867
868
869
# File 'lib/parade_db/migration_helpers.rb', line 867

def replace_paradedb_index(index_klass)
  connection.replace_paradedb_index(index_klass)
end