Skip to content

Commit c1c967c

Browse files
etewiahclaude
andcommitted
Fix social_media_post postable_id type to uuid and remove duplicate index
Annotations updated to reflect postable_id changed from bigint to uuid and removal of duplicate postable index. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 774ec46 commit c1c967c

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app/models/pwb/social_media_post.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ module Pwb
2929
# created_at :datetime not null
3030
# updated_at :datetime not null
3131
# ai_generation_request_id :bigint
32-
# postable_id :string
32+
# postable_id :uuid
3333
# website_id :bigint not null
3434
#
3535
# Indexes
3636
#
3737
# index_pwb_social_media_posts_on_ai_generation_request_id (ai_generation_request_id)
38-
# index_pwb_social_media_posts_on_postable (postable_type,postable_id)
3938
# index_pwb_social_media_posts_on_postable_type_and_postable_id (postable_type,postable_id)
4039
# index_pwb_social_media_posts_on_scheduled_at (scheduled_at)
4140
# index_pwb_social_media_posts_on_status (status)

spec/factories/pwb_social_media_posts.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
# created_at :datetime not null
2424
# updated_at :datetime not null
2525
# ai_generation_request_id :bigint
26-
# postable_id :string
26+
# postable_id :uuid
2727
# website_id :bigint not null
2828
#
2929
# Indexes
3030
#
3131
# index_pwb_social_media_posts_on_ai_generation_request_id (ai_generation_request_id)
32-
# index_pwb_social_media_posts_on_postable (postable_type,postable_id)
3332
# index_pwb_social_media_posts_on_postable_type_and_postable_id (postable_type,postable_id)
3433
# index_pwb_social_media_posts_on_scheduled_at (scheduled_at)
3534
# index_pwb_social_media_posts_on_status (status)

spec/models/pwb/social_media_post_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
# created_at :datetime not null
2424
# updated_at :datetime not null
2525
# ai_generation_request_id :bigint
26-
# postable_id :string
26+
# postable_id :uuid
2727
# website_id :bigint not null
2828
#
2929
# Indexes
3030
#
3131
# index_pwb_social_media_posts_on_ai_generation_request_id (ai_generation_request_id)
32-
# index_pwb_social_media_posts_on_postable (postable_type,postable_id)
3332
# index_pwb_social_media_posts_on_postable_type_and_postable_id (postable_type,postable_id)
3433
# index_pwb_social_media_posts_on_scheduled_at (scheduled_at)
3534
# index_pwb_social_media_posts_on_status (status)

0 commit comments

Comments
 (0)