Add watched at to movies
This commit is contained in:
3
Rakefile
3
Rakefile
@@ -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
|
||||
|
@@ -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")}"
|
||||
|
9
db/migrate/20230510105852_add_added_at_to_movies.rb
Normal file
9
db/migrate/20230510105852_add_added_at_to_movies.rb
Normal 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
|
Reference in New Issue
Block a user