Add watched at to movies

This commit is contained in:
2023-05-10 21:10:45 +10:00
parent 3913841523
commit b9234d091d
3 changed files with 13 additions and 3 deletions

View File

@@ -21,7 +21,8 @@ namespace :blog do
repo.create({
title: title,
year: activity.year,
url: activity.film_link
url: activity.film_link,
watched_at: activity.watched_at
})
end
end

View File

@@ -5,7 +5,7 @@ div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:t
table class="prose dark:prose-invert table-auto"
- trip_years.each do |year, trips|
thead
tr colspan=5
tr colspan=3
td class="text-xl" = year
- trips.each do |trip|
tr
@@ -14,7 +14,7 @@ div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:t
= trip.name
td
= trip.subtitle
td colspan=2 class="text-right text-gray-400 dark:text-gray-600 break-normal"
td class="text-right text-gray-400 dark:text-gray-600 break-normal"
= "#{trip.start_date.strftime("%m %b")}"
== " → "
= "#{trip.end_date.strftime("%m %b")}"

View File

@@ -0,0 +1,9 @@
# frozen_string_literal: true
ROM::SQL.migration do
change do
alter_table :movies do
add_column :watched_at, :date
end
end
end