Template of a custom feed generator service for the Bluesky network in Ruby

added missing index in FeedPosts

+5
db/migrate/20241022002658_add_feed_posts_post_index.rb
··· 1 + class AddFeedPostsPostIndex < ActiveRecord::Migration[6.1] 2 + def change 3 + add_index :feed_posts, :post_id 4 + end 5 + end
+2 -1
db/schema.rb
··· 10 10 # 11 11 # It's strongly recommended that you check this file into your version control system. 12 12 13 - ActiveRecord::Schema[8.0].define(version: 2024_10_17_135717) do 13 + ActiveRecord::Schema[8.0].define(version: 2024_10_22_002658) do 14 14 create_table "feed_posts", force: :cascade do |t| 15 15 t.integer "feed_id", null: false 16 16 t.integer "post_id", null: false 17 17 t.datetime "time", precision: nil, null: false 18 18 t.index ["feed_id", "time"], name: "index_feed_posts_on_feed_id_and_time" 19 + t.index ["post_id"], name: "index_feed_posts_on_post_id" 19 20 end 20 21 21 22 create_table "posts", force: :cascade do |t|