First pass at webmentions
This commit is contained in:
24
db/migrate/20230704111528_create_webmentions.rb
Normal file
24
db/migrate/20230704111528_create_webmentions.rb
Normal 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
|
Reference in New Issue
Block a user