mastodon/db/migrate/20241205103523_create_fasp_providers.rb
David Roetzel f136a9cf0f
First tiny steps towards FASP integration
This is lacking tests (and proper icons), but can talk
to a debug provider.
2024-12-19 14:05:32 +01:00

22 lines
634 B
Ruby

# frozen_string_literal: true
class CreateFaspProviders < ActiveRecord::Migration[7.2]
def change
create_table :fasp_providers do |t|
t.boolean :confirmed, null: false, default: false
t.string :name, null: false
t.string :base_url, null: false, index: { unique: true }
t.string :sign_in_url
t.string :remote_identifier, null: false
t.string :provider_public_key_pem, null: false
t.string :server_private_key_pem, null: false
t.jsonb :capabilities
t.jsonb :privacy_policy
t.string :contact_email
t.string :fediverse_account
t.timestamps
end
end
end