Skip to content

Commit 1c54153

Browse files
authored
update docs to make it less confusing and in sync with rails guide
1 parent a797083 commit 1c54153

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/delegated_type.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module ActiveRecord
3636
#
3737
# Let's look at that entry/message/comment example using delegated types:
3838
#
39-
# # Schema: entries[ id, account_id, creator_id, created_at, updated_at, entryable_type, entryable_id ]
39+
# # Schema: entries[ id, account_id, creator_id, entryable_type, entryable_id, created_at, updated_at ]
4040
# class Entry < ApplicationRecord
4141
# belongs_to :account
4242
# belongs_to :creator
@@ -51,12 +51,12 @@ module ActiveRecord
5151
# end
5252
# end
5353
#
54-
# # Schema: messages[ id, subject, body ]
54+
# # Schema: messages[ id, subject, body, created_at, updated_at ]
5555
# class Message < ApplicationRecord
5656
# include Entryable
5757
# end
5858
#
59-
# # Schema: comments[ id, content ]
59+
# # Schema: comments[ id, content, created_at, updated_at ]
6060
# class Comment < ApplicationRecord
6161
# include Entryable
6262
# end

0 commit comments

Comments
 (0)