Skip to content

Commit fd7e972

Browse files
committed
Removing enum in rails documentation
1 parent 5160246 commit fd7e972

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/guides/rails.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class Chat < ApplicationRecord
100100
acts_as_chat # Assumes Message and ToolCall model names
101101

102102
# --- Add your standard Rails model logic below ---
103-
belongs_to :user, optional: true
104-
validates :model_id, presence: true
103+
belongs_to :user, optional: true # Example
104+
validates :model_id, presence: true # Example
105105
end
106106

107107
# app/models/message.rb
@@ -110,8 +110,6 @@ class Message < ApplicationRecord
110110
acts_as_message # Assumes Chat and ToolCall model names
111111

112112
# --- Add your standard Rails model logic below ---
113-
# Optional: Use Rails enums for roles
114-
enum role: { system: 'system', user: 'user', assistant: 'assistant', tool: 'tool' }
115113
end
116114

117115
# app/models/tool_call.rb (Only if using tools)

0 commit comments

Comments
 (0)