Skip to content

Commit

Permalink
indexes (#91)
Browse files Browse the repository at this point in the history
* indexes

* more indexing
  • Loading branch information
vswamidass-sfdc authored Oct 24, 2024
1 parent 467f020 commit 63e8e94
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20241024181003_add_index_to_chat_created_at.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToChatCreatedAt < ActiveRecord::Migration[7.1]
def change
add_index :chats, :created_at
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241024181114_add_index_to_library_name.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToLibraryName < ActiveRecord::Migration[7.1]
def change
add_index :libraries, :name
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241024181441_add_index_to_documents.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToDocuments < ActiveRecord::Migration[7.1]
def change
add_index :documents, :token_count
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241024181549_add_index_to_assistants.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToAssistants < ActiveRecord::Migration[7.1]
def change
add_index :assistants, :status
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241024182151_add_index_to_messages.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToMessages < ActiveRecord::Migration[7.1]
def change
add_index :messages, :created_at
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241024182256_add_index_to_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToUsers < ActiveRecord::Migration[7.1]
def change
add_index :users, :email
end
end
5 changes: 5 additions & 0 deletions db/migrate/20241024182331_add_index_to_libraries.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToLibraries < ActiveRecord::Migration[7.1]
def change
add_index :libraries, :documents_count
end
end
9 changes: 8 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63e8e94

Please sign in to comment.