From a996f3bd05fc480247fd112f23fa3e67f7d5d7b5 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 15:54:39 -0500 Subject: Added support for liking blog posts via webmention --- db/migrate/20241207200746_add_like_fields_to_vote.rb | 8 ++++++++ db/schema.rb | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20241207200746_add_like_fields_to_vote.rb (limited to 'db') diff --git a/db/migrate/20241207200746_add_like_fields_to_vote.rb b/db/migrate/20241207200746_add_like_fields_to_vote.rb new file mode 100644 index 0000000..eae2816 --- /dev/null +++ b/db/migrate/20241207200746_add_like_fields_to_vote.rb @@ -0,0 +1,8 @@ +class AddLikeFieldsToVote < ActiveRecord::Migration[7.1] + def change + change_table :votes do |t| + t.string :liker_url + t.string :liker_name + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 9cfdf57..b01ed43 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_03_20_145033) do +ActiveRecord::Schema[7.1].define(version: 2024_12_07_200746) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -421,6 +421,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_03_20_145033) do t.string "ip" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "liker_url" + t.string "liker_name" t.index ["votable_type", "votable_id"], name: "index_votes_on_votable" end -- cgit 1.4.1