Module: ParadeDB::MigrationDSL
- Defined in:
- lib/parade_db/migration_helpers.rb
Instance Method Summary collapse
- #add_paradedb_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false) ⇒ Object
- #create_paradedb_index(index_klass, if_not_exists: false, concurrently: false) ⇒ Object
- #reindex_paradedb_index(table, name: nil, concurrently: false) ⇒ Object
- #remove_paradedb_index(table, name: nil, if_exists: false) ⇒ Object
- #replace_paradedb_index(index_klass) ⇒ Object
Instance Method Details
#add_paradedb_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false) ⇒ Object
885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/parade_db/migration_helpers.rb', line 885 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: , where: where, if_not_exists: if_not_exists, concurrently: concurrently ) end |
#create_paradedb_index(index_klass, if_not_exists: false, concurrently: false) ⇒ Object
877 878 879 |
# File 'lib/parade_db/migration_helpers.rb', line 877 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
902 903 904 |
# File 'lib/parade_db/migration_helpers.rb', line 902 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
898 899 900 |
# File 'lib/parade_db/migration_helpers.rb', line 898 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
881 882 883 |
# File 'lib/parade_db/migration_helpers.rb', line 881 def replace_paradedb_index(index_klass) connection.replace_paradedb_index(index_klass) end |