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

added index on time to posts

Changed files
+7 -1
db
+5
db/migrate/20230802222353_add_index_on_time.rb
··· 1 + class AddIndexOnTime < ActiveRecord::Migration[6.1] 2 + def change 3 + add_index :posts, :time 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.define(version: 2023_07_27_134424) do 13 + ActiveRecord::Schema.define(version: 2023_08_02_222353) do 14 14 15 15 create_table "feed_posts", force: :cascade do |t| 16 16 t.integer "feed_id", null: false ··· 26 26 t.text "data", null: false 27 27 t.string "rkey", null: false 28 28 t.index ["rkey"], name: "index_posts_on_rkey" 29 + t.index ["time"], name: "index_posts_on_time" 29 30 end 30 31 31 32 create_table "subscriptions", force: :cascade do |t|