First pass at webmentions

This commit is contained in:
2023-07-04 22:57:33 +10:00
parent a2e7a51b5f
commit 6057a8b4f0
8 changed files with 108 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
# frozen_string_literal: true
ROM::SQL.migration do
change do
create_table :webmentions do
primary_key :id
column :type, :text, null: false, default: ""
column :author_name, :text, null: false, default: ""
column :author_photo, :text, null: false, default: ""
column :author_url, :text, default: ""
column :published_at, :timestamp
column :content_html, :text, null: false, default: ""
column :content_text, :text, null: false, default: ""
column :source_url, :text, null: false, default: ""
column :target_url, :text, null: false, default: ""
foreign_key :post_id, :posts
end
end
end