Skip to content

Commit 08f881b

Browse files
committed
Update Rails guide to include ToolCall model in migrations and clarify tools persistence
1 parent 2fcbd0d commit 08f881b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/guides/rails.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This approach has one important consequence: **you cannot use `validates :conten
6060

6161
### Database Migrations
6262

63-
First, generate migrations for your `Chat` and `Message` models. You'll also need a `ToolCall` model if you plan to use [Tools]({% link guides/tools.md %}).
63+
First, generate migrations for your `Chat`, `Message`, and `ToolCall` models.
6464

6565
```bash
6666
# Generate basic models and migrations
@@ -100,7 +100,6 @@ class CreateMessages < ActiveRecord::Migration[7.1]
100100
end
101101

102102
# db/migrate/YYYYMMDDHHMMSS_create_tool_calls.rb
103-
# (Only needed if using tools)
104103
class CreateToolCalls < ActiveRecord::Migration[7.1]
105104
def change
106105
create_table :tool_calls do |t|
@@ -244,7 +243,7 @@ puts system_message.content # => "You are a concise Ruby expert."
244243

245244
### Tools Integration
246245

247-
If you're using [Tools]({% link guides/tools.md %}), they're automatically persisted too:
246+
[Tools]({% link guides/tools.md %}) are automatically persisted too:
248247

249248
```ruby
250249
# Define a tool

0 commit comments

Comments
 (0)