Files
adamantium/config/db/migrate/20230704111528_create_webmentions.rb
2024-08-05 19:00:09 +10:00

25 lines
669 B
Ruby

# 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