Skip to content

Commit 63e8e94

Browse files
indexes (#91)
* indexes * more indexing
1 parent 467f020 commit 63e8e94

8 files changed

+43
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToChatCreatedAt < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :chats, :created_at
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToLibraryName < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :libraries, :name
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToDocuments < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :documents, :token_count
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToAssistants < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :assistants, :status
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToMessages < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :messages, :created_at
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToUsers < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :users, :email
4+
end
5+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexToLibraries < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :libraries, :documents_count
4+
end
5+
end

db/schema.rb

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)