Add reactions to posts

This commit is contained in:
2024-03-31 09:03:40 +11:00
parent 185d363fbe
commit 03ba5ae54a
12 changed files with 85 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
ROM::SQL.migration do
change do
create_table :reactions do
primary_key :id
foreign_key :post_id, :posts, null: false
column :visitor_identifier, :text, null: false
index :post_id
unique [:post_id, :visitor_identifier]
end
end
end