+5
db/migrate/20241022002658_add_feed_posts_post_index.rb
+5
db/migrate/20241022002658_add_feed_posts_post_index.rb
+2
-1
db/schema.rb
+2
-1
db/schema.rb
···
10
#
11
# It's strongly recommended that you check this file into your version control system.
12
13
-
ActiveRecord::Schema[8.0].define(version: 2024_10_17_135717) 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
end
20
21
create_table "posts", force: :cascade do |t|
···
10
#
11
# It's strongly recommended that you check this file into your version control system.
12
13
+
ActiveRecord::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|