diff --git a/personal/config/sitemap.rb b/personal/config/sitemap.rb index 6b042f1..12648c9 100644 --- a/personal/config/sitemap.rb +++ b/personal/config/sitemap.rb @@ -4,27 +4,27 @@ SitemapGenerator::Sitemap.compress = false # SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/' SitemapGenerator::Sitemap.create(default_host: 'https://romanch.uk', sitemaps_path: 'sitemaps/romanchuk') do - Post.published.find_each do |post| - add(post_path(post), lastmod: post.updated_at, changefreq: :monthly, priority: 0.7) - end + # Post.published.find_each do |post| + # add(post_path(post), lastmod: post.updated_at, changefreq: :monthly, priority: 0.7) + # end - Blob.images.find_each do |blob| - add(serve_image_path(blob.slug), images: [{ - loc: blob.key - }], lastmod: blob.updated_at) - end + # Blob.images.find_each do |blob| + # add(serve_image_path(blob.slug), images: [{ + # loc: blob.key + # }], lastmod: blob.updated_at) + # end - Blob.videos.find_each do |blob| - add(serve_video_path(blob.slug), video: { - title: blob.title, - description: blob.description, - thumbnail_loc: blob.thumbnail_key, - content_loc: blob.key, - publication_date: blob.created_at.to_s, - live: false, - tags: blob.tag_names - }, lastmod: blob.updated_at) - end + # Blob.videos.find_each do |blob| + # add(serve_video_path(blob.slug), video: { + # title: blob.title, + # description: blob.description, + # thumbnail_loc: blob.thumbnail_key, + # content_loc: blob.key, + # publication_date: blob.created_at.to_s, + # live: false, + # tags: blob.tag_names + # }, lastmod: blob.updated_at) + # end end # SitemapGenerator::Sitemap.create(default_host: 'https://romanchukopen.com', sitemaps_path: 'sitemaps/romanchukopen') do diff --git a/personal/db/wx/20231231040823_add_metars_index.rb b/personal/db/wx/20231231040823_add_metars_index.rb index 4b1461e..2f2a93c 100644 --- a/personal/db/wx/20231231040823_add_metars_index.rb +++ b/personal/db/wx/20231231040823_add_metars_index.rb @@ -1,7 +1,7 @@ class AddMetarsIndex < ActiveRecord::Migration[7.1] disable_ddl_transaction! def change - add_index :tds_metars, :observation_time, algorithm: :concurrently + #add_index :tds_metars, :observation_time, algorithm: :concurrently add_index :tds_batches, :processed_at, algorithm: :concurrently end end