Template of a custom feed generator service for the Bluesky network in Ruby
1# This file is auto-generated from the current state of the database. Instead
2# of editing this file, please use the migrations feature of Active Record to
3# incrementally modify your database, and then regenerate this schema definition.
4#
5# This file is the source Rails uses to define your schema when running `bin/rails
6# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7# be faster and is potentially less error prone than running all of your
8# migrations from scratch. Old migrations may fail to apply correctly if those
9# migrations use external dependencies or application code.
10#
11# It's strongly recommended that you check this file into your version control system.
12
13ActiveRecord::Schema[8.0].define(version: 2024_10_22_002658) do
14 create_table "feed_posts", force: :cascade do |t|
15 t.integer "feed_id", null: false
16 t.integer "post_id", null: false
17 t.datetime "time", precision: nil, null: false
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"
20 end
21
22 create_table "posts", force: :cascade do |t|
23 t.string "repo", limit: 60, null: false
24 t.datetime "time", precision: nil, null: false
25 t.string "text", null: false
26 t.text "data", null: false
27 t.string "rkey", limit: 16, null: false
28 t.index ["repo", "time"], name: "index_posts_on_repo_and_time"
29 t.index ["rkey"], name: "index_posts_on_rkey"
30 t.index ["time"], name: "index_posts_on_time"
31 end
32
33 create_table "subscriptions", force: :cascade do |t|
34 t.string "service", null: false
35 t.integer "cursor", null: false
36 t.index ["service"], name: "index_subscriptions_on_service", unique: true
37 end
38end